Windows conda环境中的R-base错误

时间:2020-06-12 21:13:06

标签: r anaconda environment-variables conda conda-forge

我想通过环境文件.yml在Win64x上使用conda创建一个R环境。具体来说,我正在使用下一个YAML文件:

name: habits_env
channels:
  - r
  - conda-forge
  - defaults
dependencies:
  - r-base
  - jupyter
  - jupyterlab
  - r-irkernel
  - r-ggpubr
  - r-broom
  - r-caret
  - r-catools
  - r-devtools
  - r-ggwordcloud
  - r-glmnet
  - r-gridextra
  - r-liblinear
  - r-magrittr
  - r-plotroc
  - r-r6
  - r-randomforest
  - r-rocr
  - r-rodbc
  - r-rweka
  - r-stringr
  - r-tidytext
  - r-tidyverse
  - r-tm

软件包和依赖项的安装没有问题,但是当我运行R时,会发生下一个问题(即使仅安装r-base,该问题仍然存在):

Error: package or namespace load failed for 'grDevices' in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'D:/Usuarios/daimmuos/Anaconda3/envs/ensayo/lib/R/library/grDevices/libs/x64/grDevices.dll':
  LoadLibrary failure:  No se encontr¾ el proceso especificado.

Error: package or namespace load failed for 'graphics' in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'D:/Usuarios/daimmuos/Anaconda3/envs/ensayo/lib/R/library/grDevices/libs/x64/grDevices.dll':
  LoadLibrary failure:  No se encontr¾ el proceso especificado.

Error: package or namespace load failed for 'stats' in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'D:/Usuarios/daimmuos/Anaconda3/envs/ensayo/lib/R/library/grDevices/libs/x64/grDevices.dll':
  LoadLibrary failure:  No se encontr¾ el proceso especificado.

Durante la inicializaci¾n - Warning messages:
1: package 'grDevices' in options("defaultPackages") was not found
2: package 'graphics' in options("defaultPackages") was not found
3: package 'stats' in options("defaultPackages") was not found

如果使用 mro-base 而不是 r-base ,R可以正确执行,但是我在程序包之间存在很多冲突,并且由于不创建环境而结束

我正在从 r 渠道使用 r-base = 3.6.1

感谢您的帮助

0 个答案:

没有答案