Closed juliasunga closed 3 years ago
Hi @juliasunga unfortunately I can't replicate this problem on my computer.
Do you get the same problem with the general README example?
weather_dl(station_ids = 51423, start = "2018-02-01", end = "2018-04-15")
# A tibble: 1,776 x 37
station_name station_id station_operator prov lat lon elev climate_id WMO_id TC_id date
<chr> <dbl> <lgl> <chr> <dbl> <dbl> <dbl> <chr> <chr> <chr> <date>
1 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
2 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
3 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
4 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
5 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
6 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
7 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
8 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
9 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
10 KAMLOOPS A 51423 NA BC 50.7 -120. 345. 1163781 71887 YKA 2018-02-01
# … with 1,766 more rows, and 26 more variables: time <dttm>, year <chr>, month <chr>, day <chr>, hour <chr>,
# weather <chr>, hmdx <dbl>, hmdx_flag <chr>, precip_amt <dbl>, precip_amt_flag <chr>, pressure <dbl>,
# pressure_flag <chr>, rel_hum <dbl>, rel_hum_flag <chr>, temp <dbl>, temp_dew <dbl>, temp_dew_flag <chr>,
# temp_flag <chr>, visib <dbl>, visib_flag <chr>, wind_chill <dbl>, wind_chill_flag <chr>, wind_dir <dbl>,
# wind_dir_flag <chr>, wind_spd <dbl>, wind_spd_flag <chr>
Ah! Actually I expect it's a memoise package issue! Try updating memoise: install.packages("memoise")
.
I'm currently working on an update to weathercan, so if that works, I'll up the minimum memoise requirement. I think we had this problem reported here a little while ago, but I don't remember...
That got it working! Updating memoise followed by updating dplyr did the trick.
Thanks so much for your help! I don't know how I would've figured out that was the problem package on my own.
You got me on the right track because you were clearly looking for the package that had the problematic function... that's what made me think of "keys" (which are used in caching, which is what memoise does!).
Glad to hear it worked out, I'll add this dependency to the next version
I'm actually going to leave this open as a reminder! It shouldn't happen and I can fix it by increasing the minimum version required for memoise.
Attempting download data from St. John's International Airport for a wide-range of dates however problem appears regardless of interval or weather station used.
Current Behavior
Instead of downloading data, receive error message "Error in validate_key(key) : could not find function "validate_key"
I then tried installing package "pushoverr" which contains the validate_key function and received the following message: "validate_key() is deprecated. Please use verify_user() or verify_group() instead. PUSHOVER_APP is not set, and application token not provided (see ?pushoverr for details)" and I am prompted to enter an application token.
Steps to Reproduce (for bugs)
Possible Solution
Context
have attempted to manually install functions (dplyr, tidyr, lubridate, util) that are required of the weatherdl function and package cachem as mentioned in a stackexchange with the same error but no improvement. The function validate
Your Environment
Session info -------------------------------------------------------------------------------------------------------- setting value
version R version 4.0.5 (2021-03-31) os Windows 10 x64
system x86_64, mingw32
ui RStudio
language (EN)
collate English_Canada.1252
ctype English_Canada.1252
tz America/New_York
date 2021-04-23
Packages ------------------------------------------------------------------------------------------------------------ package version date lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0) backports 1.1.6 2020-04-05 [1] CRAN (R 4.0.0) cachem 1.0.4 2021-02-13 [1] CRAN (R 4.0.5) callr 3.4.3 2020-03-28 [1] CRAN (R 4.0.0) cli 2.0.2 2020-02-28 [1] CRAN (R 4.0.0) crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0) desc 1.2.0 2018-05-01 [1] CRAN (R 4.0.0) devtools 2.3.0 2020-04-10 [1] CRAN (R 4.0.0) digest 0.6.25 2020-02-23 [1] CRAN (R 4.0.0) dplyr 0.8.5 2020-03-07 [1] CRAN (R 4.0.0) ellipsis 0.3.0 2019-09-20 [1] CRAN (R 4.0.0) fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.0) fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.0.5) fs 1.4.1 2020-04-04 [1] CRAN (R 4.0.0) generics 0.1.0 2020-10-31 [1] CRAN (R 4.0.5) glue 1.4.0 2020-04-03 [1] CRAN (R 4.0.0) lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.5) lubridate 1.7.9 2020-06-08 [1] CRAN (R 4.0.3) magrittr 1.5 2014-11-22 [1] CRAN (R 4.0.0) memoise 1.1.0 2017-04-21 [1] CRAN (R 4.0.0) pillar 1.4.4 2020-05-05 [1] CRAN (R 4.0.0) pkgbuild 1.0.7 2020-04-25 [1] CRAN (R 4.0.0) pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0) pkgload 1.0.2 2018-10-29 [1] CRAN (R 4.0.0) prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.0.0) processx 3.4.2 2020-02-09 [1] CRAN (R 4.0.0) ps 1.3.2 2020-02-13 [1] CRAN (R 4.0.0) purrr 0.3.4 2020-04-17 [1] CRAN (R 4.0.0) pushoverr 1.0.0 2016-11-23 [1] CRAN (R 4.0.5) R6 2.4.1 2019-11-12 [1] CRAN (R 4.0.0) Rcpp 1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0) remotes 2.1.1 2020-02-15 [1] CRAN (R 4.0.0) rlang 0.4.10 2020-12-30 [1] CRAN (R 4.0.5) rprojroot 1.3-2 2018-01-03 [1] CRAN (R 4.0.0) rstudioapi 0.11 2020-02-07 [1] CRAN (R 4.0.0) sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.0) testthat 2.3.2 2020-03-02 [1] CRAN (R 4.0.0) tibble 3.0.1 2020-04-20 [1] CRAN (R 4.0.0) tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.5) tinytex 0.25 2020-07-24 [1] CRAN (R 4.0.2) usethis 1.6.1 2020-04-29 [1] CRAN (R 4.0.0) utf8 1.1.4 2018-05-24 [1] CRAN (R 4.0.0) vctrs 0.2.4 2020-03-10 [1] CRAN (R 4.0.0) weathercan 0.5.0 2021-01-15 [1] CRAN (R 4.0.5) withr 2.2.0 2020-04-20 [1] CRAN (R 4.0.0) xfun 0.13 2020-04-13 [1] CRAN (R 4.0.0)
[1] C:/Users/J_Sun/Documents/R/win-library/4.0 [2] C:/Program Files/R/R-4.0.5/library