在 R 上安装 factoextra 时出错 - 无法删除之前安装的 rlang

Error when installing factoextra on R - cannot remove previous installation of rlang

我正在尝试安装 factoextra。我是 运行ning R v.4.0.3。 我用过

    > install.packages("devtools")
    > library("devtools")
    > install_github("kassambara/factoextra")

然后询问我是否要更新软件包:

WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 4.0 from https://cran.r-project.org/bin/windows/Rtools/.
Downloading GitHub repo kassambara/factoextra@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?

1: All                          
2: CRAN packages only           
3: None                         
4: rlang (0.4.8 -> 0.4.9) [CRAN]

所以我选择了 1,以更新所有包,它 returns 具有:

    package ‘rlang’ successfully unpacked and MD5 sums checked
Error: Failed to install 'factoextra' from GitHub:
  (converted from warning) cannot remove prior installation of package ‘rlang’

我对R的经验很少,我真的不知道该怎么做。我需要 factoextra 以便我可以 运行 一个 fviz_pca 命令。

感谢您提供的任何帮助

如果 rlang 已经加载,您将收到此错误。参见 之前的 post。