darksky icon indicating copy to clipboard operation
darksky copied to clipboard

Flags object in response format

Open ghost opened this issue 7 years ago • 1 comments

Hi, i can't find no info about Flagsin the list i get after the api call. Is it implemented? I ask it because i need the data source for every call. Thank you for the package!

ghost avatar Jul 13 '17 09:07 ghost

The flags field isn't one of the parsed items returned in the darksky object, but you can add a add_json = TRUE to a get_forecast_for call and get the full JSON response returned in the json property (not printed by default, so you'd need something like dat <- get_forecast_for(add_json=TRUE, ...); dat$json$`isd-stations` to access). Tested and confirmed on the CRAN release.

davidski avatar Aug 05 '17 13:08 davidski