@@ -58,13 +58,8 @@ token_message)
5858# '
5959# ' @docType data
6060# ' @export parameterCdFile
61- # ' @examplesIf is_dataRetrieval_user()
62- # '
63- # ' \donttest{
64- # ' # Please migrate to:
65- # ' parameterCds <- read_waterdata_metadata("parameter-codes")
66- # '
67- # ' }
61+ # ' @examples
62+ # ' head(parameterCdFile[, 1:2])
6863NULL
6964
7065
@@ -118,13 +113,8 @@ NULL
118113# ' @docType data
119114# ' @export stateCd
120115# ' @keywords USGS stateCd
121- # ' @examplesIf is_dataRetrieval_user()
122- # '
123- # ' \donttest{
124- # ' # Please migrate to:
125- # ' stateCd <- read_waterdata_metadata("states")
126- # '
127- # ' }
116+ # ' @examples
117+ # ' head(stateCd)
128118NULL
129119
130120# ' US County Code Lookup Table
@@ -146,15 +136,24 @@ NULL
146136# ' @docType data
147137# ' @export countyCd
148138# ' @keywords USGS countyCd
149- # ' @examplesIf is_dataRetrieval_user()
150- # '
151- # ' \donttest{
152- # ' # Please migrate to:
153- # ' countyCd <- read_waterdata_metadata("counties")
154- # '
155- # ' }
139+ # ' @examples
140+ # ' head(countyCd)
141+ NULL
142+
143+ # # usethis namespace: start
144+ # ' @importFrom data.table data.table
145+ # ' @importFrom data.table :=
146+ # ' @importFrom data.table .SD
147+ # ' @importFrom data.table .BY
148+ # ' @importFrom data.table .N
149+ # ' @importFrom data.table .I
150+ # ' @importFrom data.table .GRP
151+ # ' @importFrom data.table .NGRP
152+ # ' @importFrom data.table .EACHI
153+ # # usethis namespace: end
156154NULL
157155
156+
158157# nolint start: commented_code_linter
159158# Here's how to incorporate the state_county.json into the historic
160159# sysdata.rda. The original data included some IDs that aren't in the json
@@ -205,21 +204,4 @@ NULL
205204#
206205# save(countyCd, stateCd, parameterCdFile, pCodeToName,
207206# file = "R/sysdata.rda", compress = "xz")
208- #
209- # services <- c("daily", "time-series-metadata",
210- # "monitoring-locations", "latest-continuous",
211- # "field-measurements", "latest-daily",
212- # "continuous")
213- #
214- # property_list <- list()
215- #
216- # for(i in services){
217- # schema <- check_OGC_requests(endpoint = i, type = "schema")
218- # properties <- names(schema$properties)
219- # property_list[[i]] <- properties
220- # }
221- # rm(schema, i, services, properties)
222- # save(countyCd, stateCd, parameterCdFile, pCodeToName, property_list, offsetLibrary,
223- # file = "R/sysdata.rda", compress = "xz")
224- #
225- # # nolint end
207+ # nolint end
0 commit comments