Error: package or namespace load failed for ‘tidyverse’ in loadNamespace

荒凉一梦 提交于 2020-05-15 09:45:13

问题


I'm getting the following error when I'm loading tidyverse. It was all working fine a few minutes ago when I was running my shinyapp. How should I resolve this?

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.3.0.1 is already loaded, but >= 0.3.1 is required


回答1:


I had the same problem but managed to tackle it. You may remove the current version of rlang using the following command:

remove.packages("rlang")

and then install the rlang again:

install.packages("rlang")

After that run the library:

library(tidyverse)



回答2:


I know this is an old question but I faced this same problem. I restarted R session and it worked fine after that. Hope this helps someone! :)




回答3:


Also had similar problem but resolved it after a struggle. I used:-

devtools::install_github("tidyverse/tidyverse")


来源:https://stackoverflow.com/questions/55415631/error-package-or-namespace-load-failed-for-tidyverse-in-loadnamespace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!