Closed mjdzr closed 3 years ago
Hmm try updating dplyr:install.packages("dplyr") Or all your packages:remotes::update_packages()Let me know how that goes!SteffiOn Mar 21, 2021 5:58 PM, francesc2 @.***> wrote: Hi all. I wanted to use a simple function of weather_dl but got some errors. I thought I should update my R to 4.0 and also my weathercan to the newest version. However I still get the error: library(weathercan) library(xlsx) library(tidyr) library(dplyr)
kam.pg <- weather_dl(station_ids = c(48248, 51423), start = "2016-01-01", end = "2016-02-15")
Error: 'any_of' is not an exported object from 'namespace:dplyr'
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe. On Mar 21, 2021 5:58 PM, francesc2 @.***> wrote: Hi all. I wanted to use a simple function of weather_dl but got some errors. I thought I should update my R to 4.0 and also my weathercan to the newest version. However I still get the error: library(weathercan) library(xlsx) library(tidyr) library(dplyr)
kam.pg <- weather_dl(station_ids = c(48248, 51423), start = "2016-01-01", end = "2016-02-15")
Error: 'any_of' is not an exported object from 'namespace:dplyr'
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe. On Mar 21, 2021 5:58 PM, francesc2 @.***> wrote: Hi all. I wanted to use a simple function of weather_dl but got some errors. I thought I should update my R to 4.0 and also my weathercan to the newest version. However I still get the error: library(weathercan) library(xlsx) library(tidyr) library(dplyr)
kam.pg <- weather_dl(station_ids = c(48248, 51423), start = "2016-01-01", end = "2016-02-15")
Error: 'any_of' is not an exported object from 'namespace:dplyr'
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.
Hrmm im having the same error as mentioned prior - I have updated all my packages here is the trace on the error:
Error: 'any_of' is not an exported object from 'namespace:dplyr'
Run rlang::last_error()
to see where the error occurred.
rlang::last_error() <error/rlang_error> 'any_of' is not an exported object from 'namespace:dplyr' Backtrace:
- weathercan::weather_dl(...)
- base::.handleSimpleError(...)
- tidyselect:::h(simpleError(msg, call)) Run
rlang::last_trace()
to see the full context. rlang::last_trace() <error/rlang_error> 'any_of' is not an exported object from 'namespace:dplyr' Backtrace: x- +-weathercan::weather_dl(...)
- | -weathercan:::weather_format(...)
- | +-dplyr::select(...)
- | -dplyr:::select.data.frame(...)
- | -tidyselect::vars_select(tbl_vars(.data), !!!enquos(...))
- | -tidyselect:::eval_select_impl(...)
- | +-tidyselect:::with_subscript_errors(...)
- | | +-base::tryCatch(...)
- | | | -base:::tryCatchList(expr, classes, parentenv, handlers)
- | | | -base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
- | | | -base:::doTryCatch(return(expr), name, parentenv, handler)
- | | -tidyselect:::instrument_base_errors(expr)
- | | -base::withCallingHandlers(...)
- | -tidyselect:::vars_select_eval(...)
- | -tidyselect:::walk_data_tree(expr, data_mask, context_mask)
- | -tidyselect:::eval_c(expr, data_mask, context_mask)
- | -tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
- | -tidyselect:::walk_data_tree(new, data_mask, context_mask)
- | -tidyselect:::eval_context(expr, context_mask)
- | -rlang::eval_tidy(expr, context_mask)
- +-dplyr::any_of
- | -base::getExportedValue(pkg, name)
- | -base::stop(...)
- -base::.handleSimpleError(...)
- -tidyselect:::h(simpleError(msg, call)) <error/simpleError> 'any_of' is not an exported object from 'namespace:dplyr'
@CamMakoJ Can you post the results of sessionInfo()? A strange error as any_of is definitely exported by dplyr.
Getting station: 2205
Formatting station data: 2205
Error: 'any_of' is not an exported object from 'namespace:dplyr'
Run rlang::last_error()
to see where the error occurred.
sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] weathercan_0.5.0 dplyr_0.8.3 tidyr_1.0.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.2 rstudioapi_0.13 magrittr_2.0.1 hms_1.0.0 tidyselect_1.1.0
[6] R6_2.5.0 rlang_0.4.10 fastmap_1.1.0 fansi_0.4.0 stringr_1.4.0
[11] httr_1.4.2 tools_3.6.1 utf8_1.1.4 ellipsis_0.3.1 assertthat_0.2.1
[16] tibble_2.1.3 lifecycle_1.0.0 crayon_1.4.1 readr_1.3.1 purrr_0.3.2
[21] vctrs_0.3.6 curl_4.2 memoise_2.0.0 glue_1.3.1 cachem_1.0.4
[26] stringi_1.4.3 compiler_3.6.1 pillar_1.5.1 lubridate_1.7.4 pkgconfig_2.0.3
Ok that helps. @CamMakoJ you haven't actually updated your packages. You have dplyr 0.8.3 but the current version is 1.0.5. Try running update.packages(). That should fix this.
Thanks @boshek, I'll try to make this a priority to update the package requirements for dplyr. Not sure I want to push to cran just for that though 😐
This is a great tool to check dependency version requirements: https://shiny.andyteucher.ca/shinyapps/rver-deps/
@boshek Unfortunately that tool is only for figuring out your minimum version of R, not the minimum version required by your dependencies. But ah well! Still a useful tool!
Hi all. I wanted to use a simple function of weather_dl but got some errors. I thought I should update my R to 4.0 and also my weathercan to the newest version. However I still get the error:
Error: 'any_of' is not an exported object from 'namespace:dplyr'