简体   繁体   English

错误:package 或“tidyverse”的命名空间加载失败:object “relocate”未由“namespace:dplyr”导出

[英]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.

相关问题 错误:loadNamespace 中“tidyverse”的包或命名空间加载失败 - Error: package or namespace load failed for ‘tidyverse’ in loadNamespace 错误:package 或“tidyverse”的命名空间加载失败,没有名为“rlang”的 package - Error: package or namespace load failed for “tidyverse” there is no package called “rlang” Tidyverse 和 dplyr- 错误 package 或命名空间 - Tidyverse and dplyr- error package or namespace 错误:package 或“tidyverse”的命名空间加载失败,没有 package 称为“reprex” - Error: package or namespace load failed for ‘tidyverse’ there is no package called ‘reprex’ 如何修复R中的“错误:'名称空间:dplyr'未导出对象'as_tibble'错误:包'BLANK'的延迟加载失败” - How to fix “Error : object ‘as_tibble’ is not exported by 'namespace:dplyr' ERROR: lazy loading failed for package ‘BLANK’” in R 错误:“gt”的包或命名空间加载失败:“命名空间:fastmap”未导出对象“faststack” - Error: package or namespace load failed for ‘gt’: object ‘faststack’ is not exported by 'namespace:fastmap' 错误:'arulesViz'的包或名称空间加载失败:对象'cividis'不会被'namespace:viridisLite'导出 - Error: package or namespace load failed for ‘arulesViz’: object ‘cividis’ is not exported by 'namespace:viridisLite' 运行 R Markdown '包或命名空间加载失败'时出现 tidyverse 错误 - tidyverse error while running R Markdown 'package or namespace load failed' 错误:包或名称空间加载失败,找不到对象… - Error: package or namespace load failed, object … not found 错误:程序包或命名空间加载失败 - Error: Package or namespace load failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM