DOI-USGS / powstreams

Tools for Powell Center working group on stream metabolism
Creative Commons Zero v1.0 Universal
2 stars 12 forks source link

handle missing vars in explore_timeseries #76

Closed aappling-usgs closed 8 years ago

aappling-usgs commented 9 years ago

Probably because sbtools has changed, I'm now getting unpretty errors when I request certain site-timeseries combos in explore_timeseries():

> explore_timeseries()
Loading required package: shiny

Listening on http://127.0.0.1:7575
Assuming 'lon' and 'lat' are longitude and latitude, respectively
Assuming 'lon' and 'lat' are longitude and latitude, respectively
Error in grepl(expected_databases, as.character(sitenum)) : 
  argument "sitenum" is missing, with no default
Assuming 'lon' and 'lat' are longitude and latitude, respectively
Assuming 'lon' and 'lat' are longitude and latitude, respectively
Assuming 'lon' and 'lat' are longitude and latitude, respectively
Assuming 'lon' and 'lat' are longitude and latitude, respectively
downloading file:depth_calcDischHarvey
downloading file:depth_calcDischHarvey
Error in sbtools_GET(url = paste0(pkg.env$url_item, id), ..., query = list(type = "json"),  : 
  Invalid Item ID
downloading file:veloc_calcDischRaymond
downloading file:veloc_calcDischRaymond
Error in sbtools_GET(url = paste0(pkg.env$url_item, id), ..., query = list(type = "json"),  : 
  Invalid Item ID

i think this occurs when a ts isn't available for one of the sites requested. But that early grepl error suggests that there might [also?] be a problem with site name parsing.

aappling-usgs commented 8 years ago

this is now fixed with the resolution of https://github.com/USGS-R/mda.streams/issues/184