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
Show whitespace changes
Inline
Side-by-side
R/importNGWMN_wml2.R
View file @
5f94aff2
...
...
@@ -144,9 +144,9 @@ importNGWMN <- function(input, asDateTime=FALSE, tz="UTC"){
#' "statCd=00003",
#' "parameterCd=00060",sep="&")
#' \donttest{
#'
if(!httr::http_error(URL)){
#'
#' timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
#'
}
#'
#' }
importWaterML2
<-
function
(
input
,
asDateTime
=
FALSE
,
tz
=
"UTC"
)
{
...
...
R/readNGWMNdata.R
View file @
5f94aff2
...
...
@@ -153,17 +153,13 @@ readNGWMNlevels <- function(siteNumbers, asDateTime = TRUE, tz = "UTC"){
#' @examples
#' \donttest{
#' #one site
#' if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
#' site <- "USGS.430427089284901"
#' oneSite <- readNGWMNsites(siteNumbers = site)
#' }
#'
#'
#' #non-USGS site
#' if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
#' site <- "MBMG.103306"
#' siteInfo <- readNGWMNsites(siteNumbers = site)
#'
}
#'
#' }
readNGWMNsites
<-
function
(
siteNumbers
){
sites
<-
readNGWMNdata
(
siteNumbers
=
siteNumbers
,
service
=
"featureOfInterest"
)
...
...
man/importWaterML2.Rd
View file @
5f94aff2
...
...
@@ -28,8 +28,8 @@ URL <- paste(baseURL, "sites=01646500",
"statCd=00003",
"parameterCd=00060",sep="&")
\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
...
...
@@ -25,16 +25,12 @@ Retrieve site data from the National Ground Water Monitoring Network \url{https:
\examples{
\donttest{
#one site
if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
site <- "USGS.430427089284901"
oneSite <- readNGWMNsites(siteNumbers = site)
}
site <- "USGS.430427089284901"
oneSite <- readNGWMNsites(siteNumbers = site)
#non-USGS site
if(!httr::http_error("https://cida.usgs.gov/ngwmn_cache")){
site <- "MBMG.103306"
siteInfo <- readNGWMNsites(siteNumbers = site)
}
site <- "MBMG.103306"
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