提问人:T.Bourgeois 提问时间:4/26/2021 更新时间:4/30/2021 访问量:1384
使用 dplyr 时出错:“namespace:vctrs”未导出对象“data_frame”
Error using dplyr : object ‘data_frame’ is not exported by 'namespace:vctrs'
问:
我每天都会使用 tidyverse 包,尤其是 dplyr。
今天,在运行我的代码时,它以前做得很好
dataframe<-dbGetQuery(bdd,"SELECT * FROM scheme.table") %>%
dplyr::filter(year_end >= 2015 & count_year>=15)
我收到此错误消息: 对象“data_frame”不是由“namespace:vctrs”导出的
我试图更新 tidyverse,关闭我的 R 会话甚至我的 Windows 会话,但每次运行 dplyr 函数时我仍然遇到此错误。
有人可以帮我吗,我想我不明白这个错误。
PS:这是我的R会话信息:
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] modifiedmk_1.5.0 lubridate_1.7.10 Formula_1.2-4 survival_3.2-7 lattice_0.20-38 sf_0.8-1 RPostgreSQL_0.6-2 DBI_1.0.0
loaded via a namespace (and not attached):
[1] splines_3.6.1 colorspace_1.4-1 vctrs_0.3.1 generics_0.1.0 utf8_1.1.4 rlang_0.4.6 e1071_1.7-3 glue_1.4.1
[9] lifecycle_1.0.0 munsell_0.5.0 gtable_0.3.0 class_7.3-15 fansi_0.4.0 Rcpp_1.0.2 KernSmooth_2.23-15 scales_1.0.0
[17] classInt_0.4-3 grid_3.6.1 tools_3.6.1 magrittr_2.0.1 ellipsis_0.3.0 Matrix_1.2-17 boot_1.3-22 R6_2.4.0
[25] units_0.6-5 compiler_3.6.1
谢谢
答:
1赞
Teresa
4/30/2021
#1
我有同样的问题。我不得不卸载并删除所有旧版本的 R 并安装最新版本。在那之后它工作得很好。
评论
0赞
Jakob
5/28/2021
同样的问题在这里。更新软件包时重新安装 R 似乎有点矫枉过正,有没有人知道是什么触发了这种情况?
评论
dataframe<-dbGetQuery(bdd,"SELECT * FROM scheme.table")
dataframe <- dataframe %>% dplyr::filter(year_end >= 2015 & count_year>=15)
rlang-0.4.10
.Rdata
.Rprofile
rlang