Error: package or namespace load failed for 'RevoUtilsMath'

Error: package or namespace load failed for 'RevoUtilsMath'

我对这个问题有点抓狂。我正在尝试在我家中的集群环境(python 2.7)中使用 conda 安装 R 包(即没有 root 权限)。我首先使用以下命令在我的环境中安装了 R:

conda install -c r r=3.4   

然后:

conda install -c conda-forge python-igraph  

(因为我感兴趣的图书馆需要 igraph)

最后:

conda install -c conda-forge r-diffusionmap    

不幸的是,当我启动 R 时出现以下消息:

Error: package or namespace load failed for 'RevoUtilsMath': .onLoad failed in loadNamespace() for 'RevoUtilsMath', details: call: NULL
error: Remove Microsoft R and then re-install. Be sure to select MKL libraries as an install option.

启动期间 - 警告消息: 包 'RevoUtils' 是在 R 版本 3.4.3

下构建的

这是什么意思?我该如何解决?

提前致谢

我在ubuntu平台(18.4)中打开运行代码的R时出现同样的错误信息,没有其他有用的方法可以解决it.MyR版本是3.4.3.enter image description here

我在我的根 R 中安装了一些库(包括 Rcpp)后遇到了同样的问题,但我的 conda 环境没有(它搞砸了 conda)。只要打开 jupyter notebook 运行 R,这就会导致内核死亡。

我的解决方法是:

  1. 重新安装 Anaconda3
  2. 重新安装我需要的所有库(主要是 R 中的 Bioconductor)

出现了一些其他问题,例如包不一致,但我按照 所述处理了这些问题。

conda-forge(或Bioconda)上的所有 R 包都是针对一个单一版本或 R 为每个新发布分支编译的(通常从补丁 1 开始,因此 3.x.1,除了 3.4.3)。这是由于ABI不兼容问题。

另请注意,defaultsconda-forge 频道是(其中)not binary compatible (although now they should be). And that since 2018 the default anaconda channel is distributing Microsoft R Open as default R,是否应优先使用来自 conda-forge 的 R 来使用来自 conda-forge 的所有包].

您应该可以通过使用 conda install -c conda-forge r-base 安装 R 来解决这个问题。