我正在尝试在R中安装软件包“ cluster”。
R Details:
platform x86_64-redhat-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 4.3
version.string R version 3.4.3 (2017-11-30)
nickname Kite-Eating Tree
我遇到以下错误:
Loading required package: cluster
Error: package \u2018cluster\u2019 was installed by an R version with different internals; it needs to be reinstalled for use with this R version
In addition: Warning messages:
1: In doTryCatch(return(expr), name, parentenv, handler) :
unable to load shared object '/usr/lib64/R/modules//R_X11.so':
/usr/lib64/R/modules//R_X11.so: undefined symbol: ALTSTRING_ELT
2: package \u2018cluster\u2019 was built under R version 3.5.0
我试图删除该软件包并重新安装。
我还尝试了以下操作:
install.packages(“ https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.4.tar.gz”) install.packages(“ https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.0.tar.gz”)
install.packages(“ https://cran.r-project.org/src/contrib/cluster_2.0.7-1.tar.gz”) install.packages(“ https://cran.r-project.org/src/contrib/Archive/cluster/cluster_2.0.2.tar.gz”)
,但没有任何效果。出现同样的错误。
请帮助。我是R的新手。
谢谢