Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1857 commits
Select commit Hold shift + click to select a range
11e47aa
Pretty up the bands
ldecicco-USGS Feb 5, 2026
3354019
More cleanup
ldecicco-USGS Feb 5, 2026
37da29f
Fix some vignette typos
jzemmels Feb 5, 2026
38da062
update param comments
ldecicco-USGS Feb 6, 2026
4b630bf
Merge branch 'main' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Feb 9, 2026
44412ac
update status
ldecicco-USGS Feb 9, 2026
941b8e6
reupdate Status
ldecicco-USGS Feb 9, 2026
bebb110
Merge pull request #857 from ldecicco-USGS/main
ldecicco-USGS Feb 9, 2026
d3e7dca
add UTC tz
ldecicco-USGS Feb 9, 2026
fee904f
last modified
ldecicco-USGS Feb 10, 2026
182a1d5
update docs
ldecicco-USGS Feb 10, 2026
228df79
Update docs
ldecicco-USGS Feb 10, 2026
e335164
bump version?
ldecicco-USGS Feb 10, 2026
8abff17
typo
ldecicco-USGS Feb 10, 2026
98fd0f2
Merge pull request #854 from ldecicco-USGS/develop
ldecicco-USGS Feb 10, 2026
f938d6c
Realized if a NA gets in a "comma parameter", it was removing that qu…
ldecicco-USGS Feb 11, 2026
95dd9ac
Not actually catching the incomplete data message 😭😭😭😭😭😭😭
ldecicco-USGS Feb 11, 2026
d9e4e8c
Cleanup vignette folder
ldecicco-USGS Feb 12, 2026
1bc2bdb
Add more data
ldecicco-USGS Feb 12, 2026
436a6fd
Merge pull request #860 from ldecicco-USGS/develop
ldecicco-USGS Feb 12, 2026
2fa0923
Fixes #862
ldecicco-USGS Feb 17, 2026
a9d0a40
Merge pull request #863 from ldecicco-USGS/develop
ldecicco-USGS Feb 17, 2026
82503ae
add channel, field meta, and combine meta
ldecicco-USGS Feb 17, 2026
466508c
added status
ldecicco-USGS Feb 17, 2026
c889892
Use API token in samples
ldecicco-USGS Feb 18, 2026
355c8fc
Add some continuous info
ldecicco-USGS Feb 19, 2026
3358e80
Get links working
ldecicco-USGS Feb 19, 2026
cc237c0
missed comments
ldecicco-USGS Feb 19, 2026
4cdfb69
updates with calendar year chunks
ldecicco-USGS Feb 20, 2026
fc4d77e
more edits
ldecicco-USGS Feb 20, 2026
dd850f1
We'll put this back when it's working again.
ldecicco-USGS Feb 20, 2026
303eccf
This isn't needed and doesn't help when the request comes back empty,…
ldecicco-USGS Feb 20, 2026
c6f5401
cleanup
ldecicco-USGS Feb 24, 2026
c350538
gwlevels not redirecting
ldecicco-USGS Feb 24, 2026
7a898b0
not working yet
ldecicco-USGS Feb 24, 2026
febd6f2
deprecate for real gwl and meas
ldecicco-USGS Feb 24, 2026
97faad9
need doc
ldecicco-USGS Feb 24, 2026
376e902
Since we've had a deprecation message for 2 versions, we should just …
ldecicco-USGS Feb 24, 2026
7d34778
Add token and ability for user to change version
ldecicco-USGS Feb 25, 2026
df2e0fc
fix test
ldecicco-USGS Feb 25, 2026
ae0a959
add token to check
ldecicco-USGS Feb 25, 2026
94969e9
apparently deleted the wrong thing
ldecicco-USGS Feb 25, 2026
8c990d1
update with review suggestions
ldecicco-USGS Feb 25, 2026
bf82d43
updated docs and slightly different retry
ldecicco-USGS Mar 2, 2026
7a13e9c
add link
ldecicco-USGS Mar 2, 2026
bc2fb6b
Merge pull request #865 from ldecicco-USGS/develop
ldecicco-USGS Mar 2, 2026
3cd03a5
Let's just rip off this bandaid
ldecicco-USGS Mar 2, 2026
1452c36
Fix field measurement id stuff
ldecicco-USGS Mar 2, 2026
ea9b712
Add some static descriptions for now
ldecicco-USGS Mar 2, 2026
d472026
news
ldecicco-USGS Mar 2, 2026
152e70f
legend
ldecicco-USGS Mar 3, 2026
3c214d3
cleanup
ldecicco-USGS Mar 3, 2026
ec60eb7
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Mar 9, 2026
90e9ddd
Getting ready for CRAN
ldecicco-USGS Mar 9, 2026
6bdb960
add these
ldecicco-USGS Mar 9, 2026
0d4d0b3
organization
ldecicco-USGS Mar 9, 2026
9a79271
Getting ready for CRAN
ldecicco-USGS Mar 9, 2026
fc68207
no footer
ldecicco-USGS Mar 9, 2026
7184135
Update R/read_waterdata_field_measurements.R
ldecicco-USGS Mar 9, 2026
1e571eb
Update vignettes/daily_data_statistics.Rmd
ldecicco-USGS Mar 9, 2026
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
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
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ 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$
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ docs
/doc/
/Meta/
/Temp/
/public/
vignettes/*.html
vignettes/*.R


/.quarto/

**/*.quarto_ipynb
.positai
90 changes: 57 additions & 33 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ workflow:
default:
tags:
- chs-shared
- dind

stages:
- build
Expand Down Expand Up @@ -36,30 +35,41 @@ variables:
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
- cd docker
- docker build
-t ${CI_REGISTRY_IMAGE}:latest
.
- docker build
-f docker/Dockerfile -t ${CI_REGISTRY_IMAGE}:latest .
- docker push --all-tags ${CI_REGISTRY_IMAGE}
artifacts:
expire_in: 5 minutes

buildcheck:
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)'
- |
Rscript -e "
rcmdcheck::rcmdcheck(
args = c('--no-manual', '--no-tests'),
build_args = c('--no-manual', '--no-resave-data'),
check_dir = '.',
error_on = 'warning'
)
"
artifacts:
paths:
- "*.tar.gz"
expire_in: 1 hour

unittests:
stage: test
Expand All @@ -68,11 +78,19 @@ unittests:
- 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 '
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 week
expire_in: 1 hour
paths:
- test-out.xml
reports:
Expand All @@ -93,33 +111,39 @@ longtest:
- if: $RUN_LONG_TESTS == "FALSE"
when: always
- when: never

artifacts:
expire_in: 5 minutes

pages:
stage: end
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 '
source_file <- list.files()[grep(".tar.gz", list.files())]
install.packages(source_file, type = "source", dependencies = FALSE)
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_fiel_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
32 changes: 17 additions & 15 deletions R/AAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ pkg.env <- new.env()
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