繁体   English   中英

R:无法安装某些软件包

[英]R: Can't install certain packages

我注意到我无法安装一堆软件包。 它开始了,那时我正尝试安装克拉套件。 我会得到这个长错误。

ERROR: compilation failed for package ‘robustbase’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/robustbase’
Warning in install.packages :
  installation of package ‘robustbase’ had non-zero exit status
ERROR: dependency ‘robustbase’ is not available for package ‘ddalpha’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/ddalpha’
Warning in install.packages :
  installation of package ‘ddalpha’ had non-zero exit status
ERROR: dependency ‘ddalpha’ is not available for package ‘recipes’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/recipes’
Warning in install.packages :
  installation of package ‘recipes’ had non-zero exit status
ERROR: dependency ‘recipes’ is not available for package ‘caret’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/caret’
Warning in install.packages :
  installation of package ‘caret’ had non-zero exit status

事先单独安装依赖项'robustbase', 'ddalpha', 'recipes'也不起作用。

我还注意到我无法更新软件包

  • glmnet
  • 地图
  • PKI
  • 一堆其他

我目前正在使用R version 3.3.2RStudio Version 1.0.136 我已经使用R和RStudio几个月了,从来没有安装软件包的问题。 我在Google和Stack-overflow上做了很多搜索,找到了一些解决方案。 他们都没有为我工作。

我的输出中的错误是

gfortran -fPIC -I/Users/UserName/anaconda/include -L/Users/UserName/anaconda/lib -c eigen.f -o eigen.o

make: gfortran: No such file or directory

我发现此线程为我提供了所需的答案。

OS X软件包的安装取决于gfortran-4.8

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM