Skip to content
Snippets Groups Projects

No data

Merged Laura A DeCicco requested to merge ldecicco-USGS:master into master
3 files
+ 65
44
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 4
0
@@ -32,6 +32,10 @@ getWebServiceData <- function(obs_url){
@@ -32,6 +32,10 @@ getWebServiceData <- function(obs_url){
if(headerInfo['status'] != "200"){
if(headerInfo['status'] != "200"){
stop("Status:", headerInfo['status'], ": ", headerInfo['statusMessage'], "\nFor: ", obs_url)
stop("Status:", headerInfo['status'], ": ", headerInfo['statusMessage'], "\nFor: ", obs_url)
} else {
} else {
 
if(grepl("No sites/data found using the selection criteria specified", returnedDoc)){
 
message(returnedDoc)
 
headerInfo['warn'] <- returnedDoc
 
}
attr(returnedDoc, "headerInfo") <- headerInfo
attr(returnedDoc, "headerInfo") <- headerInfo
return(returnedDoc)
return(returnedDoc)
}
}
Loading