hrbrmstr / darksky

:cloud: R interface to the Dark Sky API [APPLE IS SHUTTING DOWN THE API 2022-12-31]
Other
83 stars 10 forks source link

Flags object in response format #6

Open ghost opened 7 years ago

ghost commented 7 years ago

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!

davidski commented 7 years ago

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.