Skip to content
Snippets Groups Projects
Commit 171c55fd authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Took out url.exists.

parent 60c09ae5
No related branches found
No related tags found
1 merge request!50UTC
......@@ -86,7 +86,9 @@
#' inactiveAndAcitive <- importWaterML1(inactiveAndAcitive)
importWaterML1 <- function(obs_url,asDateTime=FALSE, tz=""){
if(url.exists(obs_url)){
if(file.exists(obs_url)){
doc <- xmlTreeParse(obs_url, getDTD = FALSE, useInternalNodes = TRUE)
} else {
doc = tryCatch({
h <- basicHeaderGatherer()
returnedDoc <- getURI(obs_url, headerfunction = h$update)
......@@ -106,8 +108,6 @@ importWaterML1 <- function(obs_url,asDateTime=FALSE, tz=""){
message(e)
return(NA)
})
} else {
doc <- xmlTreeParse(obs_url, getDTD = FALSE, useInternalNodes = TRUE)
}
if(tz != ""){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment