Closed roboton closed 2 years ago
I also can't get the basic example to work, although the error I get is different than the one @roboton reported above. My code, error, and R version and session information is included below. Any updates on this issue would be much appreciated!
CODE:
devtools::install_github("leighseverson/countyweather")
library(countyweather)
noaakey <- readLines("apikey_noaa.txt")
options("noaakey" = Sys.getenv("noaakey"))
andrew_precip <- daily_fips(fips = "12086", date_min = "1992-08-01",
date_max = "1992-08-31", var = "prcp")
ERROR:
Getting daily weather data for Miami-Dade County, Florida. This may take a while.
Error in if (station_ids$meta$totalCount > 10) { :
argument is of length zero
R VERSION:
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.3
year 2020
month 10
day 10
svn rev 79318
language R
version.string R version 4.0.3 (2020-10-10)
nickname Bunny-Wunnies Freak Out
R SESSION:
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)
Matrix products: default
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] countyweather_0.1.0.9000
loaded via a namespace (and not attached):
[1] rnoaa_1.3.0 tidyselect_1.1.0 remotes_2.2.0 purrr_0.3.4 colorspace_2.0-0
[6] vctrs_0.3.6 generics_0.1.0 testthat_3.0.1 usethis_2.0.0 yaml_2.2.1
[11] utf8_1.1.4 XML_3.99-0.5 rlang_0.4.10 pkgbuild_1.2.0 pillar_1.4.7
[16] glue_1.4.2 httpcode_0.3.0 withr_2.4.1 DBI_1.1.1 rappdirs_0.3.3
[21] sessioninfo_1.1.1 lifecycle_0.2.0 munsell_0.5.0 gtable_0.3.0 devtools_2.3.2
[26] memoise_1.1.0 callr_3.5.1 ps_1.5.0 curl_4.3 hoardr_0.5.2
[31] fansi_0.4.2 urltools_1.7.3 triebeard_0.3.0 Rcpp_1.0.6 scales_1.1.1
[36] desc_1.2.0 pkgload_1.1.0 jsonlite_1.7.2 fs_1.5.0 gridExtra_2.3
[41] ggplot2_3.3.3 digest_0.6.27 processx_3.4.5 dplyr_1.0.4 rprojroot_2.0.2
[46] grid_4.0.3 cli_2.3.0 tools_4.0.3 magrittr_2.0.1 tibble_3.0.6
[51] crul_1.0.0 crayon_1.4.1 tidyr_1.1.2 pkgconfig_2.0.3 ellipsis_0.3.1
[56] xml2_1.3.2 prettyunits_1.1.1 lubridate_1.7.9.2 assertthat_0.2.1 rstudioapi_0.13
[61] R6_2.5.0 compiler_4.0.3
Give this another try after installing the package from github - I think this should be working now!
From the tutorial: