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

huangapple go评论69阅读模式
英文:

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:

enter image description here

答案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")

huangapple
  • 本文由 发表于 2023年2月10日 02:38:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75403040.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定