Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Water
dataRetrieval
Commits
5f94aff2
Commit
5f94aff2
authored
Sep 10, 2021
by
Laura A DeCicco
Browse files
Taking out the http_error call
parent
464327a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
R/importNGWMN_wml2.R
View file @
5f94aff2
...
@@ -144,9 +144,9 @@ importNGWMN <- function(input, asDateTime=FALSE, tz="UTC"){
...
@@ -144,9 +144,9 @@ importNGWMN <- function(input, asDateTime=FALSE, tz="UTC"){
#' "statCd=00003",
#' "statCd=00003",
#' "parameterCd=00060",sep="&")
#' "parameterCd=00060",sep="&")
#' \donttest{
#' \donttest{
#'
if(!httr::http_error(URL)){
#'
#'
timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
#' timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
#'
}
#'
#' }
#' }
importWaterML2
<-
function
(
input
,
asDateTime
=
FALSE
,
tz
=
"UTC"
)
{
importWaterML2
<-
function
(
input
,
asDateTime
=
FALSE
,
tz
=
"UTC"
)
{
...
...
R/readNGWMNdata.R
View file @
5f94aff2
...
@@ -152,18 +152,14 @@ readNGWMNlevels <- function(siteNumbers, asDateTime = TRUE, tz = "UTC"){
...
@@ -152,18 +152,14 @@ readNGWMNlevels <- function(siteNumbers, asDateTime = TRUE, tz = "UTC"){
#' }
#' }
#' @examples
#' @examples
#' \donttest{
#' \donttest{
#' #one site
#' #one site
#' if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
#' site <- "USGS.430427089284901"
#' site <- "USGS.430427089284901"
#' oneSite <- readNGWMNsites(siteNumbers = site)
#' oneSite <- readNGWMNsites(siteNumbers = site)
#' }
#'
#'
#'
#' #non-USGS site
#' #non-USGS site
#' if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
#' site <- "MBMG.103306"
#' site <- "MBMG.103306"
#' siteInfo <- readNGWMNsites(siteNumbers = site)
#' siteInfo <- readNGWMNsites(siteNumbers = site)
#'
#' }
#' }
#' }
readNGWMNsites
<-
function
(
siteNumbers
){
readNGWMNsites
<-
function
(
siteNumbers
){
sites
<-
readNGWMNdata
(
siteNumbers
=
siteNumbers
,
service
=
"featureOfInterest"
)
sites
<-
readNGWMNdata
(
siteNumbers
=
siteNumbers
,
service
=
"featureOfInterest"
)
...
...
man/importWaterML2.Rd
View file @
5f94aff2
...
@@ -28,8 +28,8 @@ URL <- paste(baseURL, "sites=01646500",
...
@@ -28,8 +28,8 @@ URL <- paste(baseURL, "sites=01646500",
"statCd=00003",
"statCd=00003",
"parameterCd=00060",sep="&")
"parameterCd=00060",sep="&")
\donttest{
\donttest{
if(!httr::http_error(URL)){
timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
}
}
}
}
}
man/readNGWMNsites.Rd
View file @
5f94aff2
...
@@ -24,17 +24,13 @@ Retrieve site data from the National Ground Water Monitoring Network \url{https:
...
@@ -24,17 +24,13 @@ Retrieve site data from the National Ground Water Monitoring Network \url{https:
}
}
\examples{
\examples{
\donttest{
\donttest{
#one site
#one site
if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
site <- "USGS.430427089284901"
site <- "USGS.430427089284901"
oneSite <- readNGWMNsites(siteNumbers = site)
oneSite <- readNGWMNsites(siteNumbers = site)
}
#non-USGS site
#non-USGS site
if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
site <- "MBMG.103306"
site <- "MBMG.103306"
siteInfo <- readNGWMNsites(siteNumbers = site)
siteInfo <- readNGWMNsites(siteNumbers = site)
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment