ropensci / rnoaa

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

setting stationid, results in no data #196

Closed mondorescue closed 7 years ago

mondorescue commented 7 years ago

I am following the tutorial and I am running into the following error. I tried entering other stationids with no success.

> out <- ncdc(datasetid='NORMAL_DLY', stationid='GHCND:USW00014895', datatypeid='dly-tmax-normal',
+             startdate = '2010-01-01', enddate = '2010-12-10', limit = 300)
Warning message:
Sorry, no data found 
> ncdc_plot(out)
Error: Unknown columns 'datatype'
In addition: Warning messages:
1: Unknown column 'date' 
2: All formats failed to parse. No formats found.
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rnoaa_0.6.5          plyr_1.8.4           RevoUtilsMath_10.0.0

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.7      lubridate_1.6.0  tidyr_0.6.0      XML_3.98-1.4     dplyr_0.5.0     
 [6] assertthat_0.1   rappdirs_0.3.1   grid_3.3.2       R6_2.2.0         jsonlite_1.1    
[11] gtable_0.2.0     DBI_0.5-1        magrittr_1.5     scales_0.4.0     httr_1.2.1      
[16] ggplot2_2.1.0    stringi_1.1.2    curl_2.2         xml2_1.0.0       RevoUtils_10.0.2
[21] tools_3.3.2      stringr_1.1.0    munsell_0.4.3    colorspace_1.2-7 gridExtra_2.2.1 
[26] tibble_1.2      
sckott commented 7 years ago

thanks @mondorescue I'll have a look

sckott commented 7 years ago

@mondorescue try update to latest CRAN version, works for me with latest version - let me know if that works

mondorescue commented 7 years ago

@sckott Most excellent. I should have tried that first. Updating directly off CRAN fixed it. (I'm using MRAN and it is using a 2016-11-01 snapshot of CRAN for its package database, so whenever I tried updating rnoaa, it was pulling ver 0.6.5.) Thanks!

sckott commented 7 years ago

Ah, okay, good to know that about MRAN.

glad it works