[英]Error: package or namespace load failed for ‘tidyverse’: object ‘relocate’ is not exported by 'namespace:dplyr'
I installed tidyverse using this command:我使用以下命令安装了 tidyverse:
install.packages("tidyverse")
But after installing when I call the library with:但是安装后当我调用库时:
library(tidyverse)
I get this error:我收到此错误:
Error: package or namespace load failed for ‘tidyverse’: object ‘relocate’ is not exported by 'namespace:dplyr'
I am trying to do this simple thing:我正在尝试做这个简单的事情:
a = 1:100
tibble(a, b = 2 * a)
But that gives me this error message:但这给了我这个错误信息:
Error in tibble(a, b = 2 * a) : could not find function "tibble"
I tried to install again using:我尝试使用以下方法再次安装:
install.packages("devtools")
devtools::install_github("hadley/tidyverse")
This is too slow.这太慢了。 It never finished installing.它从未完成安装。 Am I missing something in installing process?我在安装过程中遗漏了什么吗? Please help.请帮忙。
I had a similar problem: when calling library(bibliometrix)
, it threw a similar error (just not the same package, and not the same object that was "not exported" by dplyr).我有一个类似的问题:当调用library(bibliometrix)
时,它抛出了一个类似的错误(只是不一样的 package,和不一样的 object 由 dplyr “未导出”)。
I updated all packages with update.packages(ask = FALSE)
, as suggested by @user2554330.根据@user2554330 的建议,我使用update.packages(ask = FALSE)
更新了所有软件包。 After that, it still wasn't working, so I restarted Rstudio, and that solved the problem, apparently.之后,它仍然无法正常工作,所以我重新启动了 Rstudio,这显然解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.