【发布时间】:2021-03-09 13:09:10
【问题描述】:
我正在尝试安装 factoextra。我正在运行 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,更新所有包,它返回:
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 命令。
感谢您提供的任何帮助
【问题讨论】:
标签: r github installation package rlang