错误:软件包是由具有不同内部结构的R版本安装的;需要重新安装此R版本才能使用

时间:2018-06-22 16:20:49

标签: r packages

我正在尝试在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

我试图删除该软件包并重新安装。

  1. remove.packages(“群集”)
  2. install.packages(“集群”)

我还尝试了以下操作:

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的新手。

谢谢

0 个答案:

没有答案