You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -66,14 +66,40 @@ To install the `dataRetrieval` package, you must be using R 3.0 or greater and r
66
66
install.packages("dataRetrieval")
67
67
```
68
68
69
-
To get cutting-edge changes, install from GitHub using the `remotes` packages:
69
+
# New USGS data access
70
+
71
+
The USGS is planning to modernize all web services in the near future. For each of these updates, `dataRetrieval` will create a new function to access the new services. To access these services on a web browser, go to <https://waterdata.usgs.gov/download-samples/>.
72
+
73
+
## New Features
74
+
75
+
### Style
76
+
77
+
New functions will use a "snake case", such as "read_USGS_samples". Older functions use camel case, such as "readNWISdv". The difference is the underscore between words. This should be a handy way to tell the difference between newer modern data access, and the older traditional functions.
78
+
79
+
### Structure
80
+
81
+
Historically, we allowed users to customize their queries via the `...` argument structure. With `...`, users needed to know the exact names of query parameters before using the function. Now, the new functions will include **ALL** possible arguments that the web service APIs support. This will allow users to use tab-autocompletes (available in RStudio and other IDEs). **Users will need to understand that it is not advisable to specify all of these parameters. The systems can get bogged down with redundant query parameters.** We expect this will be easier for users, but it might take some time to smooth out the documentation and test usability. There may be additional consequences, such as users won't be able to build up argument lists to pass into the function.
82
+
83
+
### Dependencies
84
+
85
+
Under the hood, `dataRetrieval` changed the dependency from `httr` to `httr2`. `httr2` is the modern R package for web requests that is actively developed/maintained. As we develop functions for the modern USGS web services, we'll continue to explore updating package dependencies.
86
+
87
+
### Developmental workflow
88
+
89
+
CRAN-stable documentation will be available on the GitHub pages:
90
+
<https://doi-usgs.github.io/dataRetrieval/>
91
+
92
+
In-development documentation will be available on the USGS GitLab pages:
93
+
<https://water.code-pages.usgs.gov/dataRetrieval>
94
+
95
+
Development of `dataRetrieval` will happen on a git branch called "develop". The "develop" branch will only move to the "main" branch when we submit to CRAN, unless there are bug fixes that pertain to the CRAN release. The "develop" branch WILL change frequently, and there are no promises of future behavior. Users must accept that they are using those functions at their own risk. If you willing to accept this risk, the installation instructions are:
Copy file name to clipboardExpand all lines: vignettes/samples_data.Rmd
+2-19Lines changed: 2 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -101,31 +101,14 @@ Historically, we allowed users to customize their queries via the `...` argument
101
101
102
102
Under the hood, `dataRetrieval` changed the dependency from `httr` to `httr2`. `httr2` is the modern R package for web requests that is actively developed/maintained. As we develop functions for the modern USGS web services, we'll continue to explore updating package dependencies.
103
103
104
-
### Developmental workflow
105
-
106
-
CRAN-stable documentation will be available on the GitHub pages:
107
-
<https://doi-usgs.github.io/dataRetrieval/>
108
-
109
-
Development documentation will be available on GitLab pages:
110
-
<https://water.code-pages.usgs.gov/dataRetrieval>
111
-
112
-
Development of `dataRetrieval` will happen on a git branch called "develop" on GitHub. The "develop" branch will only move to the "main" branch when we submit to CRAN, unless there are bug fixes that pertain to the CRAN release. The "develop" branch WILL change frequently, and there are no promises of future behavior. Users must accept that they are using those functions at their own risk. If you willing to accept this risk, the installation instructions are:
113
-
114
-
```{r eval=FALSE}
115
-
library(remotes)
116
-
117
-
install_github("DOI-USGS/dataRetrieval",
118
-
ref = "develop")
119
-
120
-
```
121
104
122
105
# Discrete USGS data workflow
123
106
124
107
Alright, let's test out this new service! Here is a link to the user interface:
125
-
<https://waterdata.usgs.gov/download-samples/>.
108
+
<https://waterdata.usgs.gov/download-samples>.
126
109
127
110
And here is a link to the web service documentation:
0 commit comments