Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1917 commits
Select commit Hold shift + click to select a range
f4a9388
Update vignettes/daily_data_statistics.Rmd
ldecicco-USGS Mar 9, 2026
23b2ad4
Cleanup
ldecicco-USGS Mar 9, 2026
563dc45
Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into…
ldecicco-USGS Mar 9, 2026
81f69ed
Merge pull request #866 from ldecicco-USGS/develop
ldecicco-USGS Mar 9, 2026
a63d1d5
rerun doc.
ldecicco-USGS Mar 9, 2026
42b8b67
Add a more basic introduction set of slides
ldecicco-USGS Mar 9, 2026
176b01d
Forgot to add to banner
ldecicco-USGS Mar 9, 2026
a9376ba
from upstream
ldecicco-USGS Mar 9, 2026
9360e84
Removed some links that CRAN-checks complained about
ldecicco-USGS Mar 9, 2026
4845753
Merge pull request #867 from ldecicco-USGS/develop
ldecicco-USGS Mar 9, 2026
de321cd
Actually render slides
ldecicco-USGS Mar 10, 2026
65aa560
Merge pull request #868 from ldecicco-USGS/develop
ldecicco-USGS Mar 10, 2026
aa1cba1
Wrong limit
ldecicco-USGS Mar 10, 2026
389e78d
Merge pull request #869 from ldecicco-USGS/develop
ldecicco-USGS Mar 10, 2026
322df7a
Getting ready for more updates
ldecicco-USGS Mar 10, 2026
39923ee
new column
ldecicco-USGS Mar 13, 2026
905f42b
Add automatic site chunking
ldecicco-USGS Mar 17, 2026
507a349
forgot we are importing data.table now, rbindlist is way faster
ldecicco-USGS Mar 17, 2026
c93fd29
Merge pull request #870 from ldecicco-USGS/develop
ldecicco-USGS Mar 17, 2026
8c89702
Doh!
ldecicco-USGS Mar 18, 2026
9fc7bc1
Merge pull request #871 from ldecicco-USGS/develop
ldecicco-USGS Mar 18, 2026
98e0623
Switching to air formatting
ldecicco-USGS Mar 19, 2026
7dad631
rebuild docs
ldecicco-USGS Mar 19, 2026
2ddbf7c
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Mar 20, 2026
67a12bf
set to character (we convert later)
ldecicco-USGS Mar 30, 2026
6780bbe
Merge pull request #873 from ldecicco-USGS/develop
ldecicco-USGS Mar 30, 2026
1ca4ab1
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Mar 30, 2026
29bba69
getting ready for CRAN release
ldecicco-USGS Mar 30, 2026
ee3f72b
test more things
ldecicco-USGS Mar 30, 2026
87c3c3d
Rebuilt triggers re-documenting
ldecicco-USGS Mar 30, 2026
d3d1722
Merge pull request #876 from ldecicco-USGS/develop
ldecicco-USGS Mar 31, 2026
236e091
deal with missing x,y in csv
ldecicco-USGS Mar 31, 2026
7439c40
deal with missing x,y in csv
ldecicco-USGS Mar 31, 2026
f742143
Merge branch 'main' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Mar 31, 2026
144b8da
Merge branch 'main' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Mar 31, 2026
33a97f5
Fix bugs, remove dead code, and deduplicate shared patterns
thodson-usgs Apr 13, 2026
1e41f47
Fix bugs, remove dead code, and deduplicate shared patterns
thodson-usgs Apr 13, 2026
5431407
Fix codoc mismatch for deprecated read_USGS_samples
thodson-usgs Apr 14, 2026
a54e0e7
Fix codoc mismatch for deprecated read_USGS_samples
thodson-usgs Apr 14, 2026
ec29a33
retry_on_failure = TRUE
ldecicco-USGS Apr 15, 2026
85087d9
retry_on_failure = TRUE
ldecicco-USGS Apr 15, 2026
fbf9d2d
added chunking to daily
ldecicco-USGS Apr 16, 2026
99309d8
added chunking to daily
ldecicco-USGS Apr 16, 2026
9c33105
Adding chunk_size as named argument
ldecicco-USGS Apr 16, 2026
01d15f8
Adding chunk_size as named argument
ldecicco-USGS Apr 16, 2026
947fb1f
Merge pull request #878 from thodson-usgs/simplify
ldecicco-USGS Apr 16, 2026
32ad047
Merge pull request #878 from thodson-usgs/simplify
ldecicco-USGS Apr 16, 2026
35d35ce
retry on error
ldecicco-USGS Apr 16, 2026
ebc0c46
retry on error
ldecicco-USGS Apr 16, 2026
73d40a9
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Apr 16, 2026
bd4f18f
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Apr 16, 2026
4665918
clean up docs
ldecicco-USGS Apr 16, 2026
2f04f3d
clean up docs
ldecicco-USGS Apr 16, 2026
da33579
Update version
ldecicco-USGS Apr 16, 2026
863bef5
Update version
ldecicco-USGS Apr 16, 2026
263490d
Add ...s
ldecicco-USGS Apr 16, 2026
c31924a
Add ...s
ldecicco-USGS Apr 16, 2026
f0fa6b7
Rejigger parameters
ldecicco-USGS Apr 17, 2026
522786e
Rejigger parameters
ldecicco-USGS Apr 17, 2026
3dcc868
generalize the tests more
ldecicco-USGS Apr 17, 2026
1710692
generalize the tests more
ldecicco-USGS Apr 17, 2026
3bfb7db
Cleanup install pipeline
ldecicco-USGS Apr 17, 2026
c6771e0
Cleanup install pipeline
ldecicco-USGS Apr 17, 2026
aeb3819
att attach argument
ldecicco-USGS Apr 17, 2026
ff87ae8
att attach argument
ldecicco-USGS Apr 17, 2026
cf74a4a
?
ldecicco-USGS Apr 18, 2026
8228252
?
ldecicco-USGS Apr 18, 2026
241c872
Add first pass of read_waterdata_ratings
ldecicco-USGS Apr 22, 2026
aa67bbe
Add first pass of read_waterdata_ratings
ldecicco-USGS Apr 22, 2026
6cb8446
Clean up docs
ldecicco-USGS Apr 22, 2026
c4aaca0
Clean up docs
ldecicco-USGS Apr 22, 2026
1303f54
Add to docs
ldecicco-USGS Apr 22, 2026
005a2a0
Add to docs
ldecicco-USGS Apr 22, 2026
c40c757
Added new reference lists
ldecicco-USGS Apr 23, 2026
58083ee
Added new reference lists
ldecicco-USGS Apr 23, 2026
88c7dd9
Update R/read_waterdata_ratings.R
ldecicco-USGS Apr 24, 2026
bf2cbc5
Update R/read_waterdata_ratings.R
ldecicco-USGS Apr 24, 2026
6d9bcca
Using file_type more effectively
ldecicco-USGS Apr 24, 2026
3343503
Using file_type more effectively
ldecicco-USGS Apr 24, 2026
56ce95a
Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into…
ldecicco-USGS Apr 24, 2026
c1cda89
Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into…
ldecicco-USGS Apr 24, 2026
302486d
Re-running docs with some updates from the API
ldecicco-USGS Apr 24, 2026
1a00759
Re-running docs with some updates from the API
ldecicco-USGS Apr 24, 2026
8755d8d
Remove more tests that hit NWIS
ldecicco-USGS Apr 24, 2026
e2257af
Remove more tests that hit NWIS
ldecicco-USGS Apr 24, 2026
cbd72af
Added data_type to comma, field_measurements_series_id to field measu…
ldecicco-USGS Apr 24, 2026
b95ee1f
Added data_type to comma, field_measurements_series_id to field measu…
ldecicco-USGS Apr 24, 2026
cfad036
clean up dots
ldecicco-USGS Apr 24, 2026
6fc79d5
clean up dots
ldecicco-USGS Apr 24, 2026
e465161
Add token message
ldecicco-USGS Apr 24, 2026
d583fbf
Add token message
ldecicco-USGS Apr 24, 2026
22014ec
use httr2 for download
ldecicco-USGS Apr 24, 2026
8be0492
use httr2 for download
ldecicco-USGS Apr 24, 2026
05363e5
does this work?
ldecicco-USGS Apr 27, 2026
b0cd06e
does this work?
ldecicco-USGS Apr 27, 2026
a484566
Move into docker folder
ldecicco-USGS Apr 27, 2026
2cf55c1
Move into docker folder
ldecicco-USGS Apr 27, 2026
9566e37
?
ldecicco-USGS Apr 27, 2026
dca100f
?
ldecicco-USGS Apr 27, 2026
c0599f6
wrong symbol
ldecicco-USGS Apr 27, 2026
b56d783
wrong symbol
ldecicco-USGS Apr 27, 2026
4cd3ee5
rebuild docker
ldecicco-USGS Apr 27, 2026
d66f077
rebuild docker
ldecicco-USGS Apr 27, 2026
5418526
try to build docker again
ldecicco-USGS Apr 27, 2026
1f51661
try to build docker again
ldecicco-USGS Apr 27, 2026
c45bce7
try again
ldecicco-USGS Apr 27, 2026
aa39d97
try again
ldecicco-USGS Apr 27, 2026
4d61c46
?
ldecicco-USGS Apr 27, 2026
c9a2699
?
ldecicco-USGS Apr 27, 2026
96abddd
?
ldecicco-USGS Apr 27, 2026
a815d46
?
ldecicco-USGS Apr 27, 2026
06df4ed
test python
ldecicco-USGS Apr 27, 2026
8aa0b9b
test python
ldecicco-USGS Apr 27, 2026
0f5dbe0
Take out some old vignettes
ldecicco-USGS Apr 28, 2026
57d6d09
Take out some old vignettes
ldecicco-USGS Apr 28, 2026
fb25a71
?
ldecicco-USGS Apr 28, 2026
5d25c06
?
ldecicco-USGS Apr 28, 2026
d954f18
?
ldecicco-USGS Apr 28, 2026
02ff92a
?
ldecicco-USGS Apr 28, 2026
391432b
Can I get below 1 Gb image?
ldecicco-USGS Apr 28, 2026
56c78b8
Can I get below 1 Gb image?
ldecicco-USGS Apr 28, 2026
bc9355f
call testthat instead of devtools
ldecicco-USGS Apr 28, 2026
1aadab4
call testthat instead of devtools
ldecicco-USGS Apr 28, 2026
b7d9e64
Merge pull request #879 from ldecicco-USGS/develop
ldecicco-USGS Apr 28, 2026
327e585
Merge pull request #879 from ldecicco-USGS/develop
ldecicco-USGS Apr 28, 2026
405bc47
install from local
ldecicco-USGS Apr 28, 2026
f39e300
install from local
ldecicco-USGS Apr 28, 2026
f9f571b
Try simple first
ldecicco-USGS Apr 28, 2026
faa86c3
Try simple first
ldecicco-USGS Apr 28, 2026
d8a4601
?
ldecicco-USGS Apr 28, 2026
91e6373
?
ldecicco-USGS Apr 28, 2026
2055202
clean env
ldecicco-USGS Apr 28, 2026
5d1ac83
🤷
ldecicco-USGS Apr 28, 2026
2547e21
go back to conda
ldecicco-USGS Apr 28, 2026
3ecfe67
?
ldecicco-USGS Apr 28, 2026
13d915a
?
ldecicco-USGS Apr 28, 2026
02d7467
???
ldecicco-USGS Apr 28, 2026
67e5711
speed things up by removing some parts of the pipeline (don't forget …
ldecicco-USGS Apr 28, 2026
a73edfc
looking at the Ubuntu image
ldecicco-USGS Apr 28, 2026
65f473b
🧱
ldecicco-USGS Apr 28, 2026
cf83e47
OG
ldecicco-USGS Apr 28, 2026
a5d6f90
try again?
ldecicco-USGS Apr 28, 2026
06470fd
Make sure this works before adding the tests back in
ldecicco-USGS Apr 28, 2026
a5ddebc
nope
ldecicco-USGS Apr 28, 2026
ff50e56
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Apr 28, 2026
030ec73
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Apr 28, 2026
3607472
updates
ldecicco-USGS Apr 28, 2026
a23cfc7
updates
ldecicco-USGS Apr 28, 2026
4f8e26f
Merge branch 'develop' of https://code.usgs.gov/water/dataRetrieval i…
ldecicco-USGS Apr 29, 2026
f8dd582
Merge pull request #884 from ldecicco-USGS/develop
ldecicco-USGS Apr 29, 2026
0baddb0
add more python
ldecicco-USGS Apr 29, 2026
20fd8f6
will this just work?
ldecicco-USGS Apr 29, 2026
7584089
PEAKS!
ldecicco-USGS Apr 30, 2026
05f34a4
add peaks
ldecicco-USGS Apr 30, 2026
8d92a4c
Getting GH actions working with python
ldecicco-USGS Apr 30, 2026
66fe712
Peaks in vignettes
ldecicco-USGS May 1, 2026
00b2d08
Add to NEWS
ldecicco-USGS May 1, 2026
04b555a
cleaned up doc code
ldecicco-USGS May 1, 2026
b600173
Adding an ERROR to uses where a time argument is input like this:
ldecicco-USGS May 4, 2026
e3402e8
some python updates
ldecicco-USGS May 5, 2026
021b11e
let's always rebuild (for now)
ldecicco-USGS May 5, 2026
440139c
Fix summarize_waterdata_samples doc claims that contradict the service
thodson-usgs May 5, 2026
1779879
Merge pull request #889 from thodson-usgs/fix-summarize-samples-doc
ldecicco-USGS May 5, 2026
8d20e65
More cleanup
ldecicco-USGS May 5, 2026
feae5d1
save fewer artifacts
ldecicco-USGS May 6, 2026
e5d1150
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS May 6, 2026
13cdba8
try to fix pipeline
ldecicco-USGS May 6, 2026
252873c
no artifacts
ldecicco-USGS May 6, 2026
e193c38
?
ldecicco-USGS May 6, 2026
df780f2
formatting
ldecicco-USGS May 6, 2026
2bcb219
Update tutorials/quick_intro_deck.qmd
ldecicco-USGS May 7, 2026
27ee733
more cleanup
ldecicco-USGS May 7, 2026
beecb34
Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into…
ldecicco-USGS May 7, 2026
1eb8d80
Do we slim down the Docker image if we create the enviornment only in…
ldecicco-USGS May 7, 2026
d9b148b
try again
ldecicco-USGS May 7, 2026
458c92c
pipeline work
ldecicco-USGS May 7, 2026
f9d1c71
go back
ldecicco-USGS May 7, 2026
75df7a5
?
ldecicco-USGS May 7, 2026
d160919
Merge pull request #888 from ldecicco-USGS/develop
ldecicco-USGS May 7, 2026
38cd972
Update pipeline
ldecicco-USGS May 8, 2026
e213afb
Add normal_type and interval_type arguments to stats functions
jzemmels May 11, 2026
6072b23
Remove interval_type and normal_type from default col list
jzemmels May 11, 2026
2f6db5e
delete an extra y
jzemmels May 11, 2026
61f43b8
Update stats function man file
jzemmels May 12, 2026
19ddb83
Merge pull request #890 from jzemmels/stats-updates-may26
ldecicco-USGS May 12, 2026
abc80b3
Getting CRAN ready
ldecicco-USGS May 12, 2026
2bfde8f
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS May 12, 2026
b1bc77d
quick updates to docs
ldecicco-USGS May 12, 2026
d43ab4b
updated news
ldecicco-USGS May 12, 2026
265900b
typo
ldecicco-USGS May 12, 2026
d63b4c5
nldi client tweaks: support for switching qa and minor improvements t…
dblodgett-usgs May 14, 2026
fc07574
Merge pull request #893 from dblodgett-usgs/develop
ldecicco-USGS May 14, 2026
733ecd3
ignore python stuff
ldecicco-USGS May 14, 2026
d0afc64
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS May 14, 2026
d40c7d7
fix warning
ldecicco-USGS May 14, 2026
fad6db1
Fixes #892
ldecicco-USGS May 14, 2026
5ba4e0d
Make the default for incomplete dates in peak endpoint return as char…
ldecicco-USGS May 14, 2026
9eafea3
Merge pull request #2 from ldecicco-USGS/incomplete_dates
ldecicco-USGS May 14, 2026
ff73ff6
fix example
ldecicco-USGS May 14, 2026
e3b4749
Update R/read_waterdata_combined_meta.R
ldecicco-USGS May 15, 2026
4af88be
Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into…
ldecicco-USGS May 15, 2026
a14be24
Update language
ldecicco-USGS May 15, 2026
41cb51a
Merge pull request #894 from ldecicco-USGS/develop
ldecicco-USGS May 15, 2026
cbc2efb
change argument descriptions
ldecicco-USGS May 15, 2026
d5c1a43
Merge pull request #895 from ldecicco-USGS/develop
ldecicco-USGS May 15, 2026
9fa277a
Add the first bit of python
ldecicco-USGS May 15, 2026
1f45546
try again
ldecicco-USGS May 15, 2026
c12c2b4
some slideshow updates
ldecicco-USGS May 18, 2026
9c49fea
slim down Docker
ldecicco-USGS May 18, 2026
2eac003
working on getting image to build
ldecicco-USGS May 18, 2026
22fe12e
?
ldecicco-USGS May 18, 2026
969e83d
?
ldecicco-USGS May 18, 2026
98c2a11
need env. name
ldecicco-USGS May 18, 2026
8701756
??
ldecicco-USGS May 18, 2026
1ca7e5a
??
ldecicco-USGS May 18, 2026
4707b15
??
ldecicco-USGS May 18, 2026
29833c9
???
ldecicco-USGS May 18, 2026
fbab0f2
??
ldecicco-USGS May 18, 2026
f7b1221
try this
ldecicco-USGS May 18, 2026
587eceb
?
ldecicco-USGS May 18, 2026
5c42119
sigh
ldecicco-USGS May 18, 2026
c9bd71c
?
ldecicco-USGS May 18, 2026
d654938
??
ldecicco-USGS May 18, 2026
9225b5d
??
ldecicco-USGS May 18, 2026
90bd6a4
add to path?
ldecicco-USGS May 18, 2026
d54640f
??
ldecicco-USGS May 18, 2026
a9f34af
?
ldecicco-USGS May 18, 2026
6dd5a38
arg
ldecicco-USGS May 18, 2026
f930c54
fix
ldecicco-USGS May 18, 2026
09108be
dR
ldecicco-USGS May 19, 2026
bae463c
help
ldecicco-USGS May 19, 2026
fc64783
as
ldecicco-USGS May 19, 2026
08b26d6
table
ldecicco-USGS May 19, 2026
d7d28d4
?
ldecicco-USGS May 19, 2026
d9a0c03
?
ldecicco-USGS May 19, 2026
36114c2
try again
ldecicco-USGS May 19, 2026
1661c13
new message
ldecicco-USGS May 19, 2026
6edb3f0
mistyped
ldecicco-USGS May 19, 2026
1c78c3b
link
ldecicco-USGS May 19, 2026
5204d15
need geopandas
ldecicco-USGS May 19, 2026
156fd92
A
ldecicco-USGS May 19, 2026
3560097
??
ldecicco-USGS May 19, 2026
792eaeb
???
ldecicco-USGS May 19, 2026
7d92705
just forget geopandas for now
ldecicco-USGS May 19, 2026
28de2f1
go back to this...
ldecicco-USGS May 20, 2026
c420214
Force geometry to WGS84 if missing, handle missing values
jzemmels May 20, 2026
10ba77e
Merge pull request #896 from jzemmels/stats-handle-empty-response
ldecicco-USGS May 20, 2026
7b18b25
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS May 20, 2026
e153a12
spelling
ldecicco-USGS May 26, 2026
4baa2cd
links
ldecicco-USGS May 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ vignettes/changes_slides.Rmd
vignettes/daily_data_statistics.Rmd
vignettes/continuous_pr.Rmd
vignettes/quick_slides.Rmd
vignettes/Reference_Lists.Rmd
^[.]?air[.]toml$
^\.vscode$
environment.yml
^\.positai$
^\.claude$
requirements.txt
^\.venv$
.env

6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ docs
/doc/
/Meta/
/Temp/
/public/
vignettes/*.html
vignettes/*.R


/.quarto/

**/*.quarto_ipynb
.positai
/.venv/
.env
141 changes: 92 additions & 49 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
image: ${CI_REGISTRY_IMAGE}:latest

workflow:
rules:
- if: $CI_COMMIT_TAG
Expand All @@ -8,9 +6,9 @@ workflow:
default:
tags:
- chs-shared
- dind

stages:
- build-package
- build
- check
- test
Expand All @@ -33,93 +31,138 @@ variables:
CUSTOM_DR_UA: "GitLab_CI"
API_USGS_PAT: "${API_USGS_PAT}"

build-package:
stage: build-package
image: ${CI_REGISTRY_IMAGE}:latest
script:
- set -euo pipefail
- R CMD build .
artifacts:
paths:
- "*.tar.gz"
expire_in: 1 day

build-image:
stage: build
cache: []
image: ${DEVOPS_REGISTRY}usgs/docker:20
tags:
- chs-shared
- dind
image: ${DEVOPS_REGISTRY}usgs/docker:29
services:
- name: ${DEVOPS_REGISTRY}usgs/docker:20-dind
- name: ${DEVOPS_REGISTRY}usgs/docker:29-dind
alias: docker
rules:
- changes:
- docker/Dockerfile
script:
- echo ${CI_REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin $CI_REGISTRY
- docker pull ${CI_REGISTRY_IMAGE}:latest || true
- cp *.tar.gz docker/
- cd docker
- docker build
-t ${CI_REGISTRY_IMAGE}:latest
.
- docker push --all-tags ${CI_REGISTRY_IMAGE}
artifacts:
expire_in: 45 minutes

buildcheck:
image: ${CI_REGISTRY_IMAGE}:latest
stage: check
cache: []
dependencies:
- build-image
script:
- Rscript -e 'devtools::install(quick = TRUE, upgrade = "never")'
- Rscript -e 'devtools::check(document = FALSE, args = "--no-tests", check_dir = Sys.getenv("BUILD_LOGS_DIR"), vignettes = FALSE)'

unittests:
stage: test
cache: []
dependencies:
- build-image
- buildcheck
script:
- R -e 'library(testthat); options(testthat.output_file = file.path(Sys.getenv("CI_PROJECT_DIR"), "test-out.xml")); devtools::test(reporter = "junit")'
- R -e 'x <- covr::package_coverage(); covr::to_cobertura(x); x; '
- |
Rscript -e "
rcmdcheck::rcmdcheck(
args = c('--no-manual', '--no-tests'),
build_args = c('--no-manual', '--no-resave-data'),
check_dir = '.',
error_on = 'warning'
)
"
artifacts:
when: always
expire_in: 1 week
paths:
- test-out.xml
reports:
junit: test-out.xml
coverage_report:
coverage_format: cobertura
path: cobertura.xml
coverage: '/Coverage: \d+.\d+\%/'
paths:
- "*.tar.gz"
expire_in: 1 hour

# unittests:
# stage: test
# cache: []
# image: ${CI_REGISTRY_IMAGE}:latest
# dependencies:
# - build-image
# - buildcheck
# script:
# - |
# Rscript -e '
# library(testthat)
# options(testthat.output_file = file.path(Sys.getenv("CI_PROJECT_DIR"), "test-out.xml"))
# test_local(reporter = "junit")'
# - |
# Rscript -e '
# x <- covr::package_coverage()
# covr::to_cobertura(x)
# x'
# artifacts:
# when: always
# expire_in: 1 hour
# paths:
# - test-out.xml
# reports:
# junit: test-out.xml
# coverage_report:
# coverage_format: cobertura
# path: cobertura.xml
# coverage: '/Coverage: \d+.\d+\%/'

longtest:
stage: test
image: ${CI_REGISTRY_IMAGE}:latest
dependencies:
- build-image
- buildcheck
script:
- Rscript -e 'testthat::test_local(path = "tests/manual")'
- |
Rscript -e '
testthat::test_local(path = "tests/manual")'
rules:
- if: $RUN_LONG_TESTS == "FALSE"
when: always
- when: never

artifacts:
expire_in: 5 minutes

pages:
image: ${CI_REGISTRY_IMAGE}:latest
stage: end
before_script:
- conda env create -n dataretrieval -f environment.yml
dependencies:
- build-image
- buildcheck
script:
- Rscript -e 'devtools::install(quick = TRUE, upgrade = "never")'
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
- Rscript -e 'file.copy(from = "./public/articles/logo.png", to = "./public/reference/logo.png")'
- |
Rscript -e '
pkgdown::build_site(override = list(destination = "public"))
file.copy(from = "./public/articles/logo.png", to = "./public/reference/logo.png")'
- quarto render

artifacts:
paths:
- $PAGES_OUTDIR
expire_in: 1 week
expire_in: 1 hour

Validate Inventory:
stage: end
only:
- main
image: ${INTERNAL_REGISTRY}software/software-management:latest
script:
- software-management review
--project "${CI_PROJECT_PATH}"
--ref "${CI_COMMIT_BRANCH}"
--type "provisional"
--token "${GIT_TOKEN_CUSTOM}"
tags:
- chs-shared
stage: end
only:
- main
image: ${INTERNAL_REGISTRY}software/software-management:latest
script:
- software-management review
--project "${CI_PROJECT_PATH}"
--ref "${CI_COMMIT_BRANCH}"
--type "provisional"
--token "${GIT_TOKEN_CUSTOM}"
tags:
- chs-shared
artifacts:
expire_in: 5 minutes
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dataRetrieval
Type: Package
Title: Retrieval Functions for USGS and EPA Hydrology and Water Quality Data
Version: 2.7.24
Version: 2.7.25
Authors@R: c(
person("Laura", "DeCicco", role = c("aut","cre"),
email = "ldecicco@usgs.gov",
Expand Down Expand Up @@ -68,5 +68,5 @@ Encoding: UTF-8
BuildVignettes: true
VignetteBuilder: knitr
BugReports: https://github.com/DOI-USGS/dataRetrieval/issues
RoxygenNote: 7.3.3
Roxygen: list(markdown = TRUE)
Config/roxygen2/version: 8.0.0
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export(read_waterdata_latest_daily)
export(read_waterdata_metadata)
export(read_waterdata_monitoring_location)
export(read_waterdata_parameter_codes)
export(read_waterdata_peaks)
export(read_waterdata_ratings)
export(read_waterdata_samples)
export(read_waterdata_stats_daterange)
export(read_waterdata_stats_por)
Expand Down
25 changes: 25 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
dataRetrieval 2.7.25
===================
* Added read_waterdata_ratings to access USGS rating curves with
new modern endpoint.
* Added read_waterdata_peaks to access USGS peak data with
new modern endpoint.
* Increase flexibility of chunking by monitoring_location_id by
including it as an argument in each relevant waterdata OGC function.
* Clean up deprecated code.
* Updated retry strategy to include retry_on_failure = TRUE.
* Added countries, methods, method-categories, method-citations, and
citations to possible values in read_waterdata_metadata.
* Added field_measurements_series_id argument to read_waterdata_field_measurement
* Removed NWIS tests
* Introduce an error if user inputs a numeric to any of the "time" arguments.
Because it is impossible to tell if they intended Dates or POSIX, we cannot
know for sure and therefore could add incorrect filters to the query.
* The "id" column that comes back from read_waterdata_field_meta was changed to
field_measurements_series_id to match the expectation of `read_waterdata_field_measurements`
* New argument added to read_waterdata_stats_por: "normal_type" accepts
"DOY" and "MOY"
* New argument added to read_waterdata_stats_daterange: "interval_type" accepts
"M" (month), "CY" (calendar year), and "WY" (water year).


dataRetrieval 2.7.24
===================
* Let dataRetrieval take care of chunking up requests by monitoring_location_id.
Expand Down
34 changes: 18 additions & 16 deletions R/AAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ pkg.env <- new.env()

.onLoad <- function(libname, pkgname) {
suppressMessages(setAccess("public"))
pkg.env$nldi_base <- "https://api.water.usgs.gov/nldi/linked-data/"
pkg.env$local_sf <- requireNamespace("sf", quietly = TRUE)
options("dataRetrieval.nldi_base" = "https://api.water.usgs.gov/nldi/linked-data/")
options("dataRetrieval.api_version" = "v0")
options("dataRetrieval.api_version_stat" = "v0")
options("dataRetrieval.attach_request" = TRUE)
options("dataRetrieval.convertType" = TRUE)
options("dataRetrieval.no_paging" = FALSE)
options("dataRetrieval.site_chunk_size_meta" = 250)
options("dataRetrieval.site_chunk_size_data" = 10)
options("dataRetrieval.limit" = 50000)

services <- c(
"server",
Expand All @@ -19,7 +24,8 @@ pkg.env <- new.env()
"continuous",
"field-measurements-metadata",
"combined-metadata",
"channel-measurements"
"channel-measurements",
"peaks"
)
collections <- c(
"parameter-codes",
Expand All @@ -32,7 +38,12 @@ pkg.env <- new.env()
"coordinate-method-codes",
"medium-codes",
"counties",
"countries",
"hydrologic-unit-codes",
"methods",
"method-categories",
"method-citations",
"citations",
"states",
"national-aquifer-codes",
"reliability-codes",
Expand All @@ -52,7 +63,12 @@ pkg.env <- new.env()
"coordinate_method_code",
"medium_code",
"county",
"country",
"hydrologic_unit_code",
"methods",
"method_categories",
"method_citations",
"citations",
"state",
"national_aquifer_code",
"reliability_code",
Expand Down Expand Up @@ -90,20 +106,6 @@ wqp_message_beta <- function() {
message("WQX3 services are in-development, use with caution.")
}

only_legacy <- function(service) {
legacy <- service %in%
c(
"Organization",
"ActivityMetric",
"SiteSummary",
"Project",
"ProjectMonitoringLocationWeighting",
"ResultDetectionQuantitationLimit",
"BiologicalMetric"
)
return(legacy)
}

is_legacy <- function(service) {
legacy <- service %in%
c(
Expand Down
20 changes: 0 additions & 20 deletions R/constructNWISURL.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,6 @@ constructNWISURL <- function(
url <- get_or_post(url, POST = POST, end_date = endDate)
}
},
measurements = {
url <- get_or_post(
baseURL,
POST = POST,
site_no = siteNumbers,
.multi = "comma"
)
url <- get_or_post(url, POST = POST, range_selection = "date_range")
if (nzchar(startDate)) {
url <- get_or_post(url, POST = POST, begin_date = startDate)
}
if (nzchar(endDate)) {
url <- get_or_post(url, POST = POST, end_date = endDate)
}
if (expanded) {
url <- get_or_post(url, POST = POST, format = "rdb_expanded")
} else {
url <- get_or_post(url, POST = POST, format = "rdb")
}
},
stat = {
# for statistics service

Expand Down
Loading
Loading