ropensci / rnoaa

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

Download data from rnoaa (error in API key) #390

Closed SaraAV closed 3 years ago

SaraAV commented 3 years ago
Session Info ```r ```
SaraAV commented 3 years ago

I am trying to download data from NOAA using the rnoaa package of R.

I am using ncdc_stations function to download some data:

siteNumber <- "GHCND:USC00023505" metadata_station <- ncdc_stations(datasetid='GHCND', stationid=siteNumber)

However, I am getting the following error:

Error in check_response(ncdc_GET(path, args, token, ...)) : x$response_headers$content-type == "application/json;charset=UTF-8" is not TRUE

Someone knows how to solve this issue?

sckott commented 3 years ago

thanks! having a look

sckott commented 3 years ago

@SaraAV Please try again after reinstalling like remotes::install_github("ropensci/rnoaa")

fbdelac commented 3 years ago

This has been driving me crazy. Thanks for the fix it worked.

SaraAV commented 3 years ago

Thanks sckott, it works!