英文:
I am getting an error loading a package in R as it says an older version of rlang is loaded but I have the newer version installed
问题
我试图加载一个R包,并遇到以下错误:
命名空间 'rlang' 0.4.5 已经加载,但需要 >= 0.4.10
我已经检查了我安装的rlang版本,显示如下:
packageVersion('rlang')
1 '0.4.11'
有人知道这里可能发生了什么吗?
sessionInfo:
英文:
I'm trying to load an R package and getting the following error:
namespace 'rlang' 0.4.5 is already loaded, but >= 0.4.10 is required
I have checked the version of rlang I have installed and it is showing as
> packageVersion('rlang')
1 '0.4.11'
Anyone know what might be happening here? I've tried uninstalling and reinstalling the packages involved and as part of this I tried manually installing rlang from the source just to make sure it was the correct version.
sessionInfo:
答案1
得分: 1
卸载 rlang,关闭并重新启动 R,然后使用以下命令重新安装 rlang
包:
install.packages("rlang", dependencies = TRUE)
如果你想安装特定版本,可以使用以下命令(在当前情况下是 0.4.10 版本):
install.packages("https://cran.r-project.org/src/contrib/Archive/rlang/rlang_0.4.10.tar.gz", repo=NULL, type="source")
英文:
Remove rlang, shutdown and restart R, and then reinstall `rlang' using:
install.packages("rlang", dependencies = TRUE)
If you want to install the specific version then use ( 0.4.10 in current case):
install.packages("https://cran.r-project.org/src/contrib/Archive/rlang/rlang_0.4.10.tar.gz", repo=NULL, type="source")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论