简体   繁体   English

使用 dplyr 时出错:object 'data_frame' 不是由 'namespace:vctrs' 导出的

[英]Error using dplyr : object ‘data_frame’ is not exported by 'namespace:vctrs'

I have a daily use of tidyverse packages and dplyr in particular.我每天都在使用 tidyverse 包,尤其是 dplyr。

Today, while running my code which was doing perfectly before今天,在运行我之前做得很好的代码时

dataframe<-dbGetQuery(bdd,"SELECT * FROM scheme.table") %>%
    dplyr::filter(year_end >= 2015 & count_year>=15)

I got this error message: object 'data_frame' is not exported by 'namespace:vctrs'我收到此错误消息: object 'data_frame' 不是由 'namespace:vctrs' 导出的

I tried to update the tidyverse,to close my R session and even my windows session but I still have this error each time I'm running a dplyr function. I tried to update the tidyverse,to close my R session and even my windows session but I still have this error each time I'm running a dplyr function.

Can someone help me, I think I don't understand this kinf of error.有人可以帮助我,我想我不明白这种错误。

PS: here is my R session informations: PS:这是我的 R session 信息:

    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 

Thanks谢谢

I had the same issue.我遇到过同样的问题。 I had to uninstall and remove all old versions of R and install the latest one.我必须卸载并删除所有旧版本的 R 并安装最新版本。 It worked fine after that.之后它工作得很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 R 中更新 dplyr 会出现“没有名为‘data_frame’的包”错误 - Updating dplyr in R gives “no package called ‘data_frame’” error dplyr:将data_frame随机分为两个 - dplyr: Split data_frame into two randomly 在dplyr :: mutate(没有tibble :: data_frame)中使用strsplit会引发“评估错误:非字符参数” - Using strsplit within dplyr::mutate (without tibble::data_frame) raises “Evaluation error: non-character argument” 将data.frame转换为data_frame(dplyr)后使用Tapply-R - Using tapply after convert a data.frame to a data_frame (dplyr) - R 使用dplyr在data_frame的所有列中运行卡方检验 - Run chi-square test in all columns for a data_frame using dplyr dplyr:在增加data_frame的同时添加多个滞后 - dplyr: Add multiple lags while growing the data_frame dplyr:根据data_frame每行中的值下载文件 - dplyr: Downloading a file based on the values in every row of a data_frame R data_frame错误[错误:找不到函数“ data_frame”] - R data_frame error [Error: could not find function “data_frame”] 加载软件包SASxport时出错:&#39;namespace:Hmisc&#39;未导出对象&#39;label &lt;-。data.frame&#39; - Error in loading package SASxport: object ‘label<-.data.frame’ is not exported by 'namespace:Hmisc' “ sep”不是从“ namespace:dplyr”导出的对象 - 'sep' is not an exported object from 'namespace:dplyr'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM