Skip to content

Commit 10ad0d0

Browse files
Merge pull request #385 from ldecicco-USGS/main
Fix links
2 parents 3177f98 + c0ae617 commit 10ad0d0

File tree

6 files changed

+97
-76
lines changed

6 files changed

+97
-76
lines changed

R/readNWISSample.R

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#' Import NWIS Sample Data for EGRET analysis
22
#'
33
#' Imports data from NWIS web service.
4-
#' A list of parameter and statistic codes can be found here: \url{https://help.waterdata.usgs.gov/codes-and-parameters}
5-
#' For raw data, use \code{\link[dataRetrieval]{readNWISqw}} from the dataRetrieval package.
4+
#' For raw data, use \code{\link[dataRetrieval]{readWQPqw}} from the dataRetrieval package.
65
#' This function will retrieve the raw data, and compress it (summing constituents) if
76
#' more than 1 parameter code is supplied. See
87
#' section 3.2.4 of the vignette for more details.
@@ -33,7 +32,7 @@
3332
#' CosDY \tab numeric \tab Cosine of the DecYear
3433
#' }
3534
#' @seealso \code{\link{compressData}}, \code{\link{populateSampleColumns}},
36-
#' \code{\link[dataRetrieval]{readNWISqw}}
35+
#' \code{\link[dataRetrieval]{readWQPqw}}
3736
#' @examples
3837
#' \donttest{
3938
#' # These examples require an internet connection to run

README.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Exploration and Graphics for RivEr Trends (`EGRET`):
2626
An R-package for the analysis of long-term changes in water quality and streamflow, including the water-quality method Weighted Regressions on Time, Discharge, and Season (WRTDS).
2727

2828
Look for new and improved documentation here:
29-
<https://doi-usgs.github.io/EGRET/\>
29+
<https://doi-usgs.github.io/EGRET/>
3030

3131
The link for the official USGS publication user guide is here:
3232

@@ -218,7 +218,7 @@ sessioninfo::session_info()
218218
## Reporting bugs
219219

220220
Please consider reporting bugs and asking questions on the Issues page:
221-
[https://github.com/DOI-USGS/EGRET/issues](https://github.com/DOI-USGS/EGRET/issues)
221+
<https://github.com/DOI-USGS/EGRET/issues>
222222

223223

224224
## Subscribe
@@ -251,7 +251,7 @@ citation(package = "EGRET")
251251

252252
See this list for WRTDS applications in print:
253253

254-
<https://doi-usgs.github.io/EGRET/articles/References_WRTDS.html\>
254+
<https://doi-usgs.github.io/EGRET/articles/References_WRTDS.html>
255255

256256

257257
```{r disclaimer, child="DISCLAIMER.md", eval=TRUE}

README.md

+85-62
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ including the water-quality method Weighted Regressions on Time,
1111
Discharge, and Season (WRTDS).
1212

1313
Look for new and improved documentation here:
14-
<a href="https://doi-usgs.github.io/EGRET/\"
15-
class="uri">https://doi-usgs.github.io/EGRET/\</a>
14+
<https://doi-usgs.github.io/EGRET/>
1615

1716
The link for the official USGS publication user guide is here:
1817

@@ -328,13 +327,37 @@ siteID <- "01491000" #Choptank River at Greensboro, MD
328327
startDate <- "" # Get earliest date
329328
endDate <- "" # Get latest date
330329
Daily <- readNWISDaily(siteID, "00060", startDate, endDate)
331-
#> GET: https://waterservices.usgs.gov/nwis/dv/?site=01491000&format=rdb,1.0&ParameterCd=00060&StatCd=00003&startDT=1851-01-01
332-
#> There are 28058 data points, and 28058 days.
330+
#> <httr2_request>
331+
#> GET
332+
#> https://waterservices.usgs.gov/nwis/dv/?site=01491000&format=rdb%2C1.0&ParameterCd=00060&StatCd=00003&startDT=1851-01-01
333+
#> Headers:
334+
#> • Accept-Encoding: 'compress'
335+
#> • Accept-Encoding: 'gzip'
336+
#> • Accept-Encoding: 'deflate'
337+
#> Body: empty
338+
#> Options:
339+
#> • useragent: 'libcurl/8.3.0 httr2/1.0.5 dataRetrieval/2.7.17.1'
340+
#> Policies:
341+
#> • throttle_delay: a function
342+
#> • retry_max_tries: 3
343+
#> • retry_on_failure: FALSE
344+
#> • retry_backoff: a <rlang_lambda_function> object
345+
#> There are 28068 data points, and 28068 days.
333346
# Gather site and parameter information:
334347
# Here user must input some values for
335348
# the default (interactive=TRUE)
336349
INFO <- readNWISInfo(siteID, "00060")
337-
#> GET: https://waterservices.usgs.gov/nwis/site/?siteOutput=Expanded&format=rdb&site=01491000
350+
#> <httr2_request>
351+
#> GET
352+
#> https://waterservices.usgs.gov/nwis/site/?siteOutput=Expanded&format=rdb&site=01491000
353+
#> Body: empty
354+
#> Options:
355+
#> • useragent: 'libcurl/8.3.0 httr2/1.0.5 dataRetrieval/2.7.17.1'
356+
#> Policies:
357+
#> • throttle_delay: a function
358+
#> • retry_max_tries: 3
359+
#> • retry_on_failure: FALSE
360+
#> • retry_backoff: a <rlang_lambda_function> object
338361
#> Your site for streamflow data is:
339362
#> 01491000 .
340363
#> Your site name is CHOPTANK RIVER NEAR GREENSBORO, MD
@@ -422,63 +445,65 @@ sessioninfo::session_info()
422445
#> collate English_United States.utf8
423446
#> ctype English_United States.utf8
424447
#> tz America/Chicago
425-
#> date 2024-10-26
448+
#> date 2024-11-05
426449
#> pandoc 3.2 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
427450
#>
428451
#> ─ Packages ───────────────────────────────────────────────────────────────────
429-
#> package * version date (UTC) lib source
430-
#> bit 4.5.0 2024-09-20 [1] CRAN (R 4.4.1)
431-
#> bit64 4.5.2 2024-09-22 [1] CRAN (R 4.4.1)
432-
#> class 7.3-22 2023-05-03 [2] CRAN (R 4.4.1)
433-
#> classInt 0.4-10 2023-09-05 [1] CRAN (R 4.4.0)
434-
#> cli 3.6.3 2024-06-21 [1] CRAN (R 4.4.1)
435-
#> crayon 1.5.3 2024-06-20 [1] CRAN (R 4.4.1)
436-
#> curl 5.2.3 2024-09-20 [1] CRAN (R 4.4.1)
437-
#> dataRetrieval 2.7.17 2024-10-25 [1] local
438-
#> DBI 1.2.3 2024-06-02 [1] CRAN (R 4.4.0)
439-
#> digest 0.6.37 2024-08-19 [1] CRAN (R 4.4.1)
440-
#> dotCall64 1.2 2024-10-04 [1] CRAN (R 4.4.1)
441-
#> e1071 1.7-16 2024-09-16 [1] CRAN (R 4.4.1)
442-
#> EGRET * 3.0.10 2024-10-26 [1] local
443-
#> evaluate 1.0.1 2024-10-10 [1] CRAN (R 4.4.1)
444-
#> fansi 1.0.6 2023-12-08 [1] CRAN (R 4.4.0)
445-
#> fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.0)
446-
#> fields 16.3 2024-09-30 [1] CRAN (R 4.4.1)
447-
#> glue 1.8.0 2024-09-30 [1] CRAN (R 4.4.1)
448-
#> highr 0.11 2024-05-26 [1] CRAN (R 4.4.0)
449-
#> hms 1.1.3 2023-03-21 [1] CRAN (R 4.4.0)
450-
#> htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
451-
#> httr 1.4.7 2023-08-15 [1] CRAN (R 4.4.0)
452-
#> KernSmooth 2.23-24 2024-05-17 [2] CRAN (R 4.4.1)
453-
#> knitr 1.48 2024-07-07 [1] CRAN (R 4.4.1)
454-
#> lattice 0.22-6 2024-03-20 [1] CRAN (R 4.4.0)
455-
#> lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.0)
456-
#> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.4.0)
457-
#> maps 3.4.2 2023-12-15 [1] CRAN (R 4.4.0)
458-
#> Matrix 1.7-0 2024-04-26 [2] CRAN (R 4.4.1)
459-
#> pillar 1.9.0 2023-03-22 [1] CRAN (R 4.4.0)
460-
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.4.0)
461-
#> proxy 0.4-27 2022-06-09 [1] CRAN (R 4.4.0)
462-
#> R6 2.5.1 2021-08-19 [1] CRAN (R 4.4.0)
463-
#> Rcpp 1.0.13 2024-07-17 [1] CRAN (R 4.4.1)
464-
#> readr 2.1.5 2024-01-10 [1] CRAN (R 4.4.0)
465-
#> rlang 1.1.4 2024-06-04 [1] CRAN (R 4.4.1)
466-
#> rmarkdown 2.28 2024-08-17 [1] CRAN (R 4.4.1)
467-
#> rstudioapi 0.17.1 2024-10-22 [1] CRAN (R 4.4.1)
468-
#> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.4.0)
469-
#> sf 1.0-18 2024-10-11 [1] CRAN (R 4.4.1)
470-
#> spam 2.11-0 2024-10-03 [1] CRAN (R 4.4.1)
471-
#> survival 3.6-4 2024-04-24 [2] CRAN (R 4.4.1)
472-
#> tibble 3.2.1 2023-03-20 [1] CRAN (R 4.4.0)
473-
#> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.4.0)
474-
#> tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.4.0)
475-
#> units 0.8-5 2023-11-28 [1] CRAN (R 4.4.0)
476-
#> utf8 1.2.4 2023-10-22 [1] CRAN (R 4.4.0)
477-
#> vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.0)
478-
#> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0)
479-
#> vroom 1.6.5 2023-12-05 [1] CRAN (R 4.4.0)
480-
#> xfun 0.48 2024-10-03 [1] CRAN (R 4.4.1)
481-
#> yaml 2.3.10 2024-07-26 [1] CRAN (R 4.4.1)
452+
#> package * version date (UTC) lib source
453+
#> bit 4.5.0 2024-09-20 [1] CRAN (R 4.4.1)
454+
#> bit64 4.5.2 2024-09-22 [1] CRAN (R 4.4.1)
455+
#> class 7.3-22 2023-05-03 [2] CRAN (R 4.4.1)
456+
#> classInt 0.4-10 2023-09-05 [1] CRAN (R 4.4.0)
457+
#> cli 3.6.3 2024-06-21 [1] CRAN (R 4.4.1)
458+
#> crayon 1.5.3 2024-06-20 [1] CRAN (R 4.4.1)
459+
#> curl 5.2.3 2024-09-20 [1] CRAN (R 4.4.1)
460+
#> dataRetrieval 2.7.17.1 2024-11-05 [1] local
461+
#> DBI 1.2.3 2024-06-02 [1] CRAN (R 4.4.0)
462+
#> digest 0.6.37 2024-08-19 [1] CRAN (R 4.4.1)
463+
#> dotCall64 1.2 2024-10-04 [1] CRAN (R 4.4.1)
464+
#> e1071 1.7-16 2024-09-16 [1] CRAN (R 4.4.1)
465+
#> EGRET * 3.0.10 2024-11-05 [1] local
466+
#> evaluate 1.0.1 2024-10-10 [1] CRAN (R 4.4.1)
467+
#> fansi 1.0.6 2023-12-08 [1] CRAN (R 4.4.0)
468+
#> fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.0)
469+
#> fields 16.3 2024-09-30 [1] CRAN (R 4.4.1)
470+
#> glue 1.8.0 2024-09-30 [1] CRAN (R 4.4.1)
471+
#> highr 0.11 2024-05-26 [1] CRAN (R 4.4.0)
472+
#> hms 1.1.3 2023-03-21 [1] CRAN (R 4.4.0)
473+
#> htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
474+
#> httr2 1.0.5 2024-09-26 [1] CRAN (R 4.4.1)
475+
#> KernSmooth 2.23-24 2024-05-17 [2] CRAN (R 4.4.1)
476+
#> knitr 1.48 2024-07-07 [1] CRAN (R 4.4.1)
477+
#> lattice 0.22-6 2024-03-20 [1] CRAN (R 4.4.0)
478+
#> lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.0)
479+
#> magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.4.0)
480+
#> maps 3.4.2 2023-12-15 [1] CRAN (R 4.4.0)
481+
#> Matrix 1.7-0 2024-04-26 [2] CRAN (R 4.4.1)
482+
#> pillar 1.9.0 2023-03-22 [1] CRAN (R 4.4.0)
483+
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.4.0)
484+
#> proxy 0.4-27 2022-06-09 [1] CRAN (R 4.4.0)
485+
#> R6 2.5.1 2021-08-19 [1] CRAN (R 4.4.0)
486+
#> rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.4.0)
487+
#> Rcpp 1.0.13 2024-07-17 [1] CRAN (R 4.4.1)
488+
#> readr 2.1.5 2024-01-10 [1] CRAN (R 4.4.0)
489+
#> rlang 1.1.4 2024-06-04 [1] CRAN (R 4.4.1)
490+
#> rmarkdown 2.28 2024-08-17 [1] CRAN (R 4.4.1)
491+
#> rstudioapi 0.17.1 2024-10-22 [1] CRAN (R 4.4.1)
492+
#> sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.4.0)
493+
#> sf 1.0-18 2024-10-11 [1] CRAN (R 4.4.1)
494+
#> spam 2.11-0 2024-10-03 [1] CRAN (R 4.4.1)
495+
#> survival 3.6-4 2024-04-24 [2] CRAN (R 4.4.1)
496+
#> tibble 3.2.1 2023-03-20 [1] CRAN (R 4.4.0)
497+
#> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.4.0)
498+
#> tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.4.0)
499+
#> units 0.8-5 2023-11-28 [1] CRAN (R 4.4.0)
500+
#> utf8 1.2.4 2023-10-22 [1] CRAN (R 4.4.0)
501+
#> vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.0)
502+
#> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0)
503+
#> vroom 1.6.5 2023-12-05 [1] CRAN (R 4.4.0)
504+
#> withr 3.0.1 2024-07-31 [1] CRAN (R 4.4.1)
505+
#> xfun 0.48 2024-10-03 [1] CRAN (R 4.4.1)
506+
#> yaml 2.3.10 2024-07-26 [1] CRAN (R 4.4.1)
482507
#>
483508
#> [1] C:/Users/ldecicco/AppData/Local/R/win-library/4.4
484509
#> [2] C:/Program Files/R/R-4.4.1/library
@@ -546,9 +571,7 @@ citation(package = "EGRET")
546571

547572
See this list for WRTDS applications in print:
548573

549-
<a
550-
href="https://doi-usgs.github.io/EGRET/articles/References_WRTDS.html\"
551-
class="uri">https://doi-usgs.github.io/EGRET/articles/References_WRTDS.html\</a>
574+
<https://doi-usgs.github.io/EGRET/articles/References_WRTDS.html>
552575

553576
# Disclaimer
554577

man/readNWISSample.Rd

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/EGRET.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ knitr::kable(DF, caption="Example data",
415415
416416
```
417417

418-
EGRET will "add up" all the values in a given row to form the total for that sample when using the Sample data frame. Thus, you only want to enter data that should be added together. If you want a data frame with multiple constituents that are not summed, do not use `readNWISSample`, `readWQPSample`, or `readUserSample`. The raw data functions: `getWQPdata`, `readNWISqw`, `readWQPqw`, `readWQPdata` from the EGRET package will not sum constituents, but leave them in their individual columns.
418+
EGRET will "add up" all the values in a given row to form the total for that sample when using the Sample data frame. Thus, you only want to enter data that should be added together. If you want a data frame with multiple constituents that are not summed, do not use `readNWISSample`, `readWQPSample`, or `readUserSample`. The raw data functions: `getWQPdata`, `readWQPqw`, `readWQPdata` from the EGRET package will not sum constituents, but leave them in their individual columns.
419419

420420
For example, we might know the value for dp on 5/30/2005, but we don't want to put it in the table because under the rules of this data set, we are not supposed to add it in to the values in 2005.
421421

0 commit comments

Comments
 (0)