Skip to content

Adding waterdata functions #790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 148 commits into from
Jun 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
ce78003
Beginning work on new API services
ldecicco-USGS Apr 16, 2025
65382a4
change messages
ldecicco-USGS Apr 17, 2025
b8bef41
Adding parameters.
ldecicco-USGS Apr 17, 2025
7af6779
fixing some warnings
ldecicco-USGS Apr 17, 2025
1314210
remove filter arg
ldecicco-USGS Apr 17, 2025
66fb60f
WQP workign?
ldecicco-USGS Apr 18, 2025
cc7a76d
Some updates to dv
ldecicco-USGS May 6, 2025
b8505dc
add whisker to docker
ldecicco-USGS May 6, 2025
5224989
getting POST dvs to work
ldecicco-USGS May 6, 2025
61b4dd8
user doesn't need offset
ldecicco-USGS May 7, 2025
bec30c5
Rejigger structure and add vignette
ldecicco-USGS May 7, 2025
cb8ac47
Get rid of some warnings
ldecicco-USGS May 7, 2025
4db8f73
cleanup a few more things
ldecicco-USGS May 7, 2025
b390fde
Doh!
ldecicco-USGS May 8, 2025
0a3d1b5
update to time-series switch
ldecicco-USGS May 8, 2025
f12d71f
make check_param more explicit
ldecicco-USGS May 8, 2025
8418a42
forgot a rename
ldecicco-USGS May 8, 2025
742d6e4
Change to md style roxygen
ldecicco-USGS May 8, 2025
245c492
adding site service
ldecicco-USGS May 8, 2025
7bf35c0
with updates
ldecicco-USGS May 8, 2025
c5e6c14
Started news
ldecicco-USGS May 8, 2025
4e3d663
Update to monitoring-locations
ldecicco-USGS May 9, 2025
ec1784d
hide datetime
ldecicco-USGS May 9, 2025
b85cb36
update to vignette
ldecicco-USGS May 9, 2025
c71e311
cleanup pages?
ldecicco-USGS May 9, 2025
af255af
wayward quote
ldecicco-USGS May 9, 2025
9c131ef
it wasn't a wayward quote...it was a wayward end-of-line
ldecicco-USGS May 9, 2025
6470146
rename
ldecicco-USGS May 16, 2025
5018fa6
upstream pull
ldecicco-USGS May 16, 2025
6b30cff
Update _pkgdown.yml
ldecicco-USGS May 20, 2025
6ccb817
Update _pkgdown.yml
ldecicco-USGS May 20, 2025
ced5959
docs match code
ldecicco-USGS May 20, 2025
05f031d
put basic_request in all queries
ldecicco-USGS May 20, 2025
aef2326
Merge branch 'main' of github.com:DOI-USGS/dataRetrieval into dv_service
ldecicco-USGS May 21, 2025
85be645
Update R/walk_pages.R
ldecicco-USGS May 21, 2025
c5e421e
Merge branch 'dv_service' of github.com:ldecicco-USGS/dataRetrieval i…
ldecicco-USGS May 21, 2025
5e4a64e
Add descriptions
ldecicco-USGS May 22, 2025
a8f7253
Fixes from reviewers
ldecicco-USGS May 22, 2025
cdf79fb
Get rid of Tailcall
ldecicco-USGS May 22, 2025
aa7d987
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS May 23, 2025
f5dc93e
fix bbox error
ldecicco-USGS May 23, 2025
28d964e
fixed slash
ldecicco-USGS May 23, 2025
a49f0c4
Merge branch 'dv_service' of github.com:ldecicco-USGS/dataRetrieval i…
ldecicco-USGS May 23, 2025
8ad2db9
deal with empty returns
ldecicco-USGS May 23, 2025
1703cec
Rejigger to use more native httr2 functions
ldecicco-USGS May 23, 2025
358fdc4
fix empty return (again!)
ldecicco-USGS May 23, 2025
be46567
add bbox example
ldecicco-USGS May 23, 2025
a0a5157
Update R/construct_api_requests.R
ldecicco-USGS May 27, 2025
5e78cd5
check if offset is too big
ldecicco-USGS May 27, 2025
1487029
Don't limit to 20 pages.
ldecicco-USGS May 27, 2025
f9e766b
Adding some bbox text
ldecicco-USGS May 27, 2025
b8ded26
fix error
ldecicco-USGS May 27, 2025
4f0a42e
Merge pull request #773 from ldecicco-USGS/dv_service
ldecicco-USGS May 28, 2025
c8cf3aa
Add a generalized retrieval function
ldecicco-USGS May 28, 2025
fe90e7b
add another test and doc
ldecicco-USGS May 28, 2025
f2c8d12
add some internal documentation
ldecicco-USGS May 28, 2025
be06d16
cleanup api urls
ldecicco-USGS May 30, 2025
1a83fef
Merge pull request #776 from ldecicco-USGS/read_USGS_data
ldecicco-USGS May 30, 2025
66ffed7
upstream pull
ldecicco-USGS May 30, 2025
38e6401
add some roxygen
ldecicco-USGS Jun 2, 2025
c841abb
add more docs
ldecicco-USGS Jun 2, 2025
10b7cfe
more docs
ldecicco-USGS Jun 2, 2025
1a74342
Add deprecation and make Status page more prominent in pkgdown site.
ldecicco-USGS Jun 2, 2025
85ffddf
Update tests and examples
ldecicco-USGS Jun 2, 2025
def03d8
add data
ldecicco-USGS Jun 3, 2025
eb3e372
Update readme with new flow
ldecicco-USGS Jun 3, 2025
52fe279
eliminate test warnings
ldecicco-USGS Jun 3, 2025
b45aefc
Update message and convert more tests
ldecicco-USGS Jun 3, 2025
8ea1fb3
last test cleanup
ldecicco-USGS Jun 3, 2025
96c1988
clean up message
ldecicco-USGS Jun 3, 2025
ce5a007
Merge branch 'add_docs' into 'develop'
ldecicco-USGS Jun 3, 2025
06293bf
fix NLDI test
ldecicco-USGS Jun 3, 2025
9c1db9b
Merge branch 'add_docs' into 'develop'
ldecicco-USGS Jun 3, 2025
8150512
make sure this works on gitlab
ldecicco-USGS Jun 3, 2025
bb7bfa4
Merge pull request #777 from ldecicco-USGS/add_docs
ldecicco-USGS Jun 3, 2025
eab31be
Remove bbox from daily
ldecicco-USGS Jun 3, 2025
a5394a7
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into upda…
ldecicco-USGS Jun 3, 2025
5b011c8
Add API key info to readme
ldecicco-USGS Jun 3, 2025
b142641
initial edits
ehinman Jun 3, 2025
7871762
add discrete stuff
ldecicco-USGS Jun 3, 2025
b16744d
Merge branch 'develop' of https://code.usgs.gov/water/dataRetrieval i…
ldecicco-USGS Jun 3, 2025
3bf91ce
put bbox back in daily
ldecicco-USGS Jun 3, 2025
2dc44ae
more edits to status vignette
ehinman Jun 3, 2025
6eb3ca0
Vignette updates
ldecicco-USGS Jun 4, 2025
5ca8d67
Fixes #754
ldecicco-USGS Jun 4, 2025
283a799
small wordsmithing, rearranging, add a bit more about API key
ehinman Jun 4, 2025
c450de6
take author off to encourage collaboration
ldecicco-USGS Jun 4, 2025
f3b8f89
better link
ldecicco-USGS Jun 4, 2025
4c28703
correct one more QW, add reference to USGS services vignette - no lin…
ehinman Jun 4, 2025
8f2c561
Merge pull request #780 from ldecicco-USGS/develop
ldecicco-USGS Jun 4, 2025
70c3719
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into upda…
ldecicco-USGS Jun 4, 2025
77b5c23
Add help section
ldecicco-USGS Jun 4, 2025
3a2eacf
Merge branch 'develop' of https://code.usgs.gov/water/dataRetrieval i…
ldecicco-USGS Jun 4, 2025
aaffa73
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
2b0ea51
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
69b5d04
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
095c5d5
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
da75aec
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
f478f2f
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
7bb6683
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
8943ec3
Update README.Rmd
ldecicco-USGS Jun 4, 2025
4c090c0
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
35c918e
Update vignettes/read_USGS_functions.Rmd
ldecicco-USGS Jun 4, 2025
942fc3b
First pass updates to tutorial
ldecicco-USGS Jun 4, 2025
69c7d1b
some updates from reviewers
ldecicco-USGS Jun 4, 2025
1c16310
pull from PR
ldecicco-USGS Jun 4, 2025
4972ee0
vignette updates
ldecicco-USGS Jun 4, 2025
99225ce
Merge pull request #778 from ehinman/update-status-edh
ldecicco-USGS Jun 4, 2025
d623570
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Jun 4, 2025
8946acf
Clean up language
ldecicco-USGS Jun 4, 2025
c507a95
Merge branch 'update_vignette' into 'develop'
ldecicco-USGS Jun 4, 2025
67d69b2
Merge pull request #779 from ldecicco-USGS/update_vignette
ldecicco-USGS Jun 4, 2025
75e3f0a
Merge branch 'tutorial' into 'develop'
ldecicco-USGS Jun 4, 2025
47a18a4
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Jun 4, 2025
42c920e
Added max_results argument
ldecicco-USGS Jun 5, 2025
3575b4c
Learned how to spell results 😂
ldecicco-USGS Jun 5, 2025
978dcdb
Still learning to spell
ldecicco-USGS Jun 5, 2025
783a820
add some tips
ldecicco-USGS Jun 5, 2025
4379cf7
I think pandoc is already in the base image
ldecicco-USGS Jun 5, 2025
e54f7c2
Working pkgdown links
ldecicco-USGS Jun 5, 2025
8d2fe11
stop testing on ci
ldecicco-USGS Jun 5, 2025
030b246
move this after the property fiddling
ldecicco-USGS Jun 5, 2025
9574657
Add a function to deal with id crazyness
ldecicco-USGS Jun 6, 2025
4cb2b6a
plural
ldecicco-USGS Jun 6, 2025
6ccbc3e
Merge pull request #781 from ldecicco-USGS/tutorial
ldecicco-USGS Jun 6, 2025
646d6be
Merge pull request #782 from ldecicco-USGS/fix_ids
ldecicco-USGS Jun 6, 2025
d3567a2
Merge branch 'fix_ids' into 'develop'
ldecicco-USGS Jun 6, 2025
2ab878a
Merge branch 'develop' of https://code.usgs.gov/water/dataRetrieval i…
ldecicco-USGS Jun 6, 2025
5cc4e05
Allow character urls
ldecicco-USGS Jun 12, 2025
dee77cf
chickening out on removing all deprecated function examples.
ldecicco-USGS Jun 12, 2025
0858539
Merge pull request #785 from ldecicco-USGS/develop
ldecicco-USGS Jun 12, 2025
1e405d6
Getting ready for CRAN
ldecicco-USGS Jun 12, 2025
f8bb09b
Merge pull request #786 from ldecicco-USGS/develop
ldecicco-USGS Jun 12, 2025
068e7bc
lose the scary message
ldecicco-USGS Jun 12, 2025
7dae1e2
NAME CHANGE!
ldecicco-USGS Jun 13, 2025
8638c2f
Add warning to setAccess
ldecicco-USGS Jun 13, 2025
1d9d8f7
Update the readme
ldecicco-USGS Jun 13, 2025
b9cbf4e
missed a few?
ldecicco-USGS Jun 13, 2025
da86ce1
missed a few
ldecicco-USGS Jun 13, 2025
cdcdd79
fix state code stuff
ldecicco-USGS Jun 13, 2025
0315f53
Fix pkgdown
ldecicco-USGS Jun 13, 2025
5ddc0d0
Does that help?
ldecicco-USGS Jun 13, 2025
a2775c5
Update NEWS
ldecicco-USGS Jun 13, 2025
9805ce1
Update NEWS
ldecicco-USGS Jun 16, 2025
9a7182e
Merge pull request #788 from ldecicco-USGS/develop
ldecicco-USGS Jun 16, 2025
63a9887
Update intro vignette
ldecicco-USGS Jun 16, 2025
40a55db
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into develop
ldecicco-USGS Jun 16, 2025
38a2c51
Merge pull request #789 from ldecicco-USGS/develop
ldecicco-USGS Jun 16, 2025
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
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ vignettes/Status.Rmd
vignettes/long_to_wide.Rmd
vignettes/join_by_closest.Rmd
vignettes/wqx3_development_plan.Rmd
vignettes/read_waterdata_functions.Rmd
vignettes/dataretrieval_discrete_changes_images/*
^ci$
^public$
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
API_USGS_PAT: ${{ secrets.API_USGS_PAT }}
R_KEEP_PKG_SOURCE: yes
CUSTOM_DR_UA: 'GitHub_CI'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
API_USGS_PAT: ${{ secrets.API_USGS_PAT }}
CUSTOM_DR_UA: 'GitHub_CI'
steps:
- uses: actions/checkout@581d62f320f2a4043a1ea6ac77290c60d27485cc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
API_USGS_PAT: ${{ secrets.API_USGS_PAT }}
R_KEEP_PKG_SOURCE: yes
CUSTOM_DR_UA: 'GitHub_CI'

Expand Down
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ variables:
NOT_CRAN: "true"
PAGES_OUTDIR: "$CI_PROJECT_DIR/public"
CUSTOM_DR_UA: "GitLab_CI"
API_USGS_PAT: "${API_USGS_PAT}"

build-image:
stage: build
Expand Down Expand Up @@ -98,6 +99,7 @@ pages:
cache: []
script:
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
- Rscript -e 'file.copy(from = "./public/articles/logo.png", to = "./public/reference/logo.png")'
artifacts:
paths:
- $PAGES_OUTDIR
Expand Down
26 changes: 18 additions & 8 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.18.9002
Version: 2.7.19
Authors@R: c(
person("Laura", "DeCicco", role = c("aut","cre"),
email = "ldecicco@usgs.gov",
Expand All @@ -26,36 +26,46 @@ Authors@R: c(
comment=c(ORCID = "0000-0003-2521-5043")),
person("Lee", "Stanish", role="ctb",
email = "lstanish@usgs.gov",
comment=c(ORCID = "0000-0002-9775-6861")))
comment=c(ORCID = "0000-0002-9775-6861")),
person("Joeseph", "Zemmels", role="ctb",
email = "jzemmels@usgs.gov",
comment=c(ORCID = "0009-0008-1463-6313")),
person("Elise", "Hinman", role="ctb",
email = "ehinman@usgs.gov",
comment=c(ORCID = "0000-0001-5396-1583")),
person("Michael", "Mahoney", role="ctb",
email = "mjmahoney@usgs.gov",
comment=c(ORCID = "0000-0003-2402-304X"))
)
Description: Collection of functions to help retrieve U.S. Geological Survey
and U.S. Environmental Protection Agency water quality and
hydrology data from web services. Data are discovered from
National Water Information System <https://waterservices.usgs.gov/> and <https://waterdata.usgs.gov/nwis>.
Water quality data are obtained from the Water Quality Portal <https://www.waterqualitydata.us/>.
hydrology data from web services.
License: CC0
Copyright: This software is in the public domain because it contains materials
that originally came from the United States Geological Survey, an agency of
the United States Department of Interior.
Depends:
R (>= 4.1.0)
Imports:
curl,
curl (>= 6.0.0),
lubridate (>= 1.5.0),
stats,
utils,
xml2,
readr (>= 1.4.0),
jsonlite,
httr2
httr2,
whisker,
sf
Suggests:
covr,
dplyr,
knitr,
rmarkdown,
sf,
testthat
Encoding: UTF-8
BuildVignettes: true
VignetteBuilder: knitr
BugReports: https://github.com/DOI-USGS/dataRetrieval/issues
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)
12 changes: 10 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
export(addWaterYear)
export(calcWaterYear)
export(checkWQPdates)
export(check_param)
export(check_OGC_requests)
export(check_waterdata_sample_params)
export(constructNWISURL)
export(constructUseURL)
export(constructWQPURL)
export(construct_USGS_sample_request)
export(construct_api_requests)
export(construct_waterdata_sample_request)
export(countyCd)
export(countyCdLookup)
export(create_NWIS_bib)
Expand Down Expand Up @@ -43,11 +45,17 @@ export(readWQPdata)
export(readWQPqw)
export(readWQPsummary)
export(read_USGS_samples)
export(read_waterdata)
export(read_waterdata_daily)
export(read_waterdata_monitoring_location)
export(read_waterdata_samples)
export(read_waterdata_ts_meta)
export(renameNWISColumns)
export(setAccess)
export(stateCd)
export(stateCdLookup)
export(summarize_USGS_samples)
export(summarize_waterdata_samples)
export(whatNWISdata)
export(whatNWISsites)
export(whatWQPdata)
Expand Down
9 changes: 9 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
dataRetrieval 2.7.19
===================
* Added read_waterdata_daily, read_waterdata_monitoring_location, read_waterdata_ts_meta to access
new USGS web services.
* Added whisker and sf as dependencies.
* Renamed read_USGS_samples to read_waterdata_samples.
* Renamed summarize_USGS_samples to summarize_waterdata_samples.
* Added warning to setAccess for non-public endpoints.

dataRetrieval 2.7.18
===================
* Switched from httr to httr2
Expand Down
9 changes: 9 additions & 0 deletions R/AAA.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pkg.env <- new.env()
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" = list("api_version" = "v0"))
}


Expand Down Expand Up @@ -51,3 +52,11 @@ discrete water quality data newer than March 11, 2024.
For additional details, see:
https://doi-usgs.github.io/dataRetrieval/articles/Status.html")
}

new_nwis_message <- function(){
return("ALERT: All NWIS services are slated for decommission
and new dataRetrieval functions will be added.
For up-to-date information, see:
https://doi-usgs.github.io/dataRetrieval/articles/Status.html")
}

4 changes: 2 additions & 2 deletions R/checkWQPdates.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Date Check for Water Quality Portal
#'
#' Checks date format for inputs to the Water Quality Portal. Used in \code{readWQPqw}
#' and \code{readWQPdata}.
#' Checks date format for inputs to the Water Quality Portal. Used in `readWQPqw`
#' and `readWQPdata`.
#'
#' @param values named list with arguments to send to the Water Quality Portal
#' @return values named list with corrected arguments to send to the Water Quality Portal
Expand Down
4 changes: 2 additions & 2 deletions R/citations.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
#' Uses attributes from the NWIS functions to create data citations.
#'
#' See \code{?bibentry} for more information.
#' See `?bibentry` for more information.
#'
#' @param x Any data returned from an NWIS function, must
#' include "queryTime" and "url" attributes, which should
Expand Down Expand Up @@ -48,7 +48,7 @@ create_NWIS_bib <- function(x){
#'
#' Uses attributes from the WQP functions to create data citations.
#'
#' See \code{?bibentry} for more information.
#' See `?bibentry` for more information.
#'
#' @param x Any data returned from an NWIS function, must
#' include "queryTime" and "url" attributes, which should
Expand Down
14 changes: 7 additions & 7 deletions R/constructNWISURL.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
#' momentary problem with the internet connection). It is possible to safely use the "tsv" option,
#' but the user must carefully check the results to see if the data returns matches
#' what is expected. The default is therefore "xml".
#' @param expanded logical defaults to \code{TRUE}. If \code{TRUE}, retrieves additional
#' @param expanded logical defaults to `TRUE`. If `TRUE`, retrieves additional
#' information, only applicable for qw data.
#' @param ratingType can be "base", "corr", or "exsa". Only applies to rating curve data.
#' @param statReportType character Only used for statistics service requests. Time
#' division for statistics: daily, monthly, or annual. Default is daily.
#' Note that daily provides statistics for each calendar day over the specified
#' range of water years, i.e. no more than 366 data points will be returned for
#' each site/parameter. Use \code{readNWISdata} or \code{readNWISdv} for daily averages.
#' each site/parameter. Use `readNWISdata` or `readNWISdv` for daily averages.
#' Also note that "annual" returns statistics for the calendar year. Use
#' \code{readNWISdata} for water years. Monthly and yearly
#' `readNWISdata` for water years. Monthly and yearly
#' provide statistics for each month and year within the range individually.
#' @param statType character Only used for statistics service requests. Type(s)
#' of statistics to output for daily values. Default is mean, which is the only
#' option for monthly and yearly report types. See the statistics service documentation
#' at \url{https://waterservices.usgs.gov/docs/statistics/} for a
#' at <https://waterservices.usgs.gov/docs/statistics/> for a
#' full list of codes.
#' @keywords data import USGS web service
#' @return url string
Expand Down Expand Up @@ -304,7 +304,7 @@ constructNWISURL <- function(siteNumbers,

#' Construct WQP url for data retrieval
#'
#' Construct WQP url for data retrieval. This function gets the data from here: \url{https://www.waterqualitydata.us}
#' Construct WQP url for data retrieval. This function gets the data from here: <https://www.waterqualitydata.us>
#'
#' @param siteNumbers string or vector of strings USGS site number.
#' @param parameterCd string or vector of USGS parameter code. This is usually an 5 digit number.
Expand Down Expand Up @@ -433,7 +433,7 @@ constructWQPURL <- function(siteNumbers,

#' Construct URL for NWIS water use data service
#'
#' Reconstructs URLs to retrieve data from here: \url{https://waterdata.usgs.gov/nwis/wu}
#' Reconstructs URLs to retrieve data from here: <https://waterdata.usgs.gov/nwis/wu>
#'
#' @param years integer Years for data retrieval. Must be years ending in 0 or 5,
#' or "ALL", which retrieves all available years.
Expand Down Expand Up @@ -490,4 +490,4 @@ constructUseURL <- function(years, stateCd, countyCd, categories) {
.multi = "comma")

return(baseURL)
}
}
Loading
Loading