Skip to content

Commit da4e582

Browse files
committed
Last updates before CRAN submission
1 parent cbb6633 commit da4e582

8 files changed

+214
-372
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export(read_waterdata)
4949
export(read_waterdata_daily)
5050
export(read_waterdata_latest_continuous)
5151
export(read_waterdata_monitoring_location)
52-
export(read_waterdata_parameter_code)
5352
export(read_waterdata_samples)
5453
export(read_waterdata_ts_meta)
5554
export(renameNWISColumns)

R/read_waterdata_latest_continuous.R

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,9 @@ read_waterdata_latest_continuous <- function(monitoring_location_id = NA_charact
8484
output_id <- "latest_continuous_id"
8585

8686
args <- mget(names(formals()))
87-
args[["service"]] <- service
88-
89-
args <- switch_arg_id(args,
90-
id_name = output_id,
91-
service = service)
92-
93-
args[["properties"]] <- switch_properties_id(properties,
94-
id_name = output_id,
95-
service = service)
96-
97-
args[["convertType"]] <- NULL
98-
99-
dv_req <- do.call(construct_api_requests, args)
100-
101-
return_list <- walk_pages(dv_req, max_results)
102-
103-
return_list <- deal_with_empty(return_list, properties, service)
104-
105-
if(convertType) return_list <- cleanup_cols(return_list,
106-
service = service)
107-
108-
return_list <- rejigger_cols(return_list, properties, output_id)
87+
return_list <- get_ogc_data(args,
88+
output_id,
89+
service)
10990

11091
return_list <- return_list[order(return_list$time, return_list$monitoring_location_id), ]
11192

R/read_waterdata_parameter_code.R

Lines changed: 0 additions & 95 deletions
This file was deleted.

README.Rmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ The `dataRetrieval` package was created to simplify the process of loading hydro
3131

3232
# Introduction
3333

34-
:warning: USGS discrete water-quality data availability and format are changing. Beginning March 11, 2024 USGS data obtained from legacy services will not include new USGS data or recent updates to existing data. To view the status of changes in data availability and code functionality, visit: <https://doi-usgs.github.io/dataRetrieval/articles/Status.html>
34+
:warning: NWIS web services (readNWIS functions) will be replaced over time by USGS Water Data APIs (read_waterdata_). Read more about it here:
35+
<https://doi-usgs.github.io/dataRetrieval/articles/read_waterdata_functions.html>
36+
37+
:warning: USGS discrete water-quality data availability and format are changing. To view the status of changes in data availability and code functionality, visit: <https://doi-usgs.github.io/dataRetrieval/articles/Status.html>
3538

3639
If you have additional questions about these changes, email [email protected].
3740

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ Environmental Protection Agency (EPA), U.S. Department of Agriculture
1515

1616
# Introduction
1717

18+
:warning: NWIS web services (readNWIS functions) will be replaced over
19+
time by USGS Water Data APIs (read_waterdata\_). Read more about it
20+
here:
21+
<https://doi-usgs.github.io/dataRetrieval/articles/read_waterdata_functions.html>
22+
1823
:warning: USGS discrete water-quality data availability and format are
19-
changing. Beginning March 11, 2024 USGS data obtained from legacy
20-
services will not include new USGS data or recent updates to existing
21-
data. To view the status of changes in data availability and code
24+
changing. To view the status of changes in data availability and code
2225
functionality, visit:
2326
<https://doi-usgs.github.io/dataRetrieval/articles/Status.html>
2427

@@ -193,14 +196,14 @@ NWIScitation
193196
#> U.S. Geological Survey (2025). _National Water Information System data
194197
#> available on the World Wide Web (USGS Water Data for the Nation)_.
195198
#> doi:10.5066/F7P55KJN <https://doi.org/10.5066/F7P55KJN>, Accessed Jun
196-
#> 13, 2025,
199+
#> 27, 2025,
197200
#> <https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01>.
198201
print(NWIScitation, style = "Bibtex")
199202
#> @Manual{,
200203
#> title = {National Water Information System data available on the World Wide Web (USGS Water Data for the Nation)},
201204
#> author = {{U.S. Geological Survey}},
202205
#> doi = {10.5066/F7P55KJN},
203-
#> note = {Accessed Jun 13, 2025},
206+
#> note = {Accessed Jun 27, 2025},
204207
#> year = {2025},
205208
#> url = {https://waterservices.usgs.gov/nwis/dv/?site=09010500&format=waterml%2C1.1&ParameterCd=00060&StatCd=00003&startDT=1851-01-01},
206209
#> }
@@ -224,14 +227,14 @@ WQPcitation <- create_WQP_bib(SC)
224227
WQPcitation
225228
#> National Water Quality Monitoring Council (2025). _Water Quality
226229
#> Portal_. doi:10.5066/P9QRKUVJ <https://doi.org/10.5066/P9QRKUVJ>,
227-
#> Accessed Jun 13, 2025,
230+
#> Accessed Jun 27, 2025,
228231
#> <https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv>.
229232
print(WQPcitation, style = "Bibtex")
230233
#> @Manual{,
231234
#> title = {Water Quality Portal},
232235
#> author = {{National Water Quality Monitoring Council}},
233236
#> doi = {10.5066/P9QRKUVJ},
234-
#> note = {Accessed Jun 13, 2025},
237+
#> note = {Accessed Jun 27, 2025},
235238
#> year = {2025},
236239
#> url = {https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&count=no&pCode=00300&mimeType=csv},
237240
#> }

_pkgdown.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ navbar:
6464
- icon: fa-github fa-lg
6565
href: https://github.com/DOI-USGS/dataRetrieval
6666
reference:
67-
- title: USGS new data services
68-
desc: Functions to retrieve USGS data from new services.
67+
- title: USGS Water Data
68+
desc: Functions to retrieve USGS Water Data APIs.
6969
contents:
7070
- read_waterdata_samples
7171
- read_waterdata_daily
7272
- read_waterdata_ts_meta
7373
- read_waterdata_monitoring_location
74+
- read_waterdata_latest_continuous
7475
- read_waterdata
7576
- summarize_waterdata_samples
7677
- check_waterdata_sample_params

man/read_waterdata_parameter_code.Rd

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)