我正在尝试安装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命令。
感谢您所能给予的任何帮助
发布于 2020-11-27 00:49:20
如果已经加载了rlang,则会出现此错误。请参阅this上一篇文章。
https://stackoverflow.com/questions/65025675
复制相似问题