Skip to content

Commit 80204fb

Browse files
committed
getting it so waterData doesn't break
1 parent 85d1022 commit 80204fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

R/getWebServiceData.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ getWebServiceData <- function(obs_url, ...) {
2525
return(invisible(NULL))
2626
}
2727

28+
if(is.character(obs_url)){
29+
obs_url <- httr2::request(obs_url)
30+
}
31+
2832
obs_url <- httr2::req_user_agent(obs_url, default_ua())
2933
obs_url <- httr2::req_throttle(obs_url, rate = 30 / 60)
3034
obs_url <- httr2::req_retry(obs_url,

0 commit comments

Comments
 (0)