ropensci / rnoaa

R interface to many NOAA data APIs
https://docs.ropensci.org/rnoaa
Other
328 stars 85 forks source link

ghcnd helper fxn ghcnd_GET: fix for bad station ids, returns parsed html currently #374

Closed sckott closed 3 years ago

sckott commented 3 years ago
x <- ghcnd("foobar")
x$id
#> [1] "<!DOCTYPE H" "<html><head" "<title>404 " "</head><bod" "<h1>Not Fou" "<p>The requ" "</body></ht"

probably instead just return empty data.frame or NULL maybe