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

Added check to make sure multiple services aren't requested.

parent ad520502
No related branches found
No related tags found
1 merge request!63More error handling, specifically WQP.
......@@ -50,6 +50,10 @@ readNWISdata <- function(service="dv", ...){
matchReturn <- list(...)
if(length(service) > 1){
stop("Only one service call allowed.")
}
values <- sapply(matchReturn, function(x) URLencode(as.character(paste(eval(x),collapse=",",sep=""))))
urlCall <- paste(paste(names(values),values,sep="="),collapse="&")
......
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