我注意到我无法安装一堆软件包。它开始然后我试图安装包 carat 。我会得到这个很长的错误。
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’
也不起作用。
我还注意到我无法更新软件包
我目前正在使用R version 3.3.2
和RStudio Version 1.0.136
。几个月来我一直在使用R和RStudio,从来没有遇到过安装软件包的问题。我已经在Google和Stack-overflow上进行了大量搜索,并找到了一些解决方案。他们都没有为我工作。
答案 0 :(得分:1)
输出中的错误是
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
我发现这个帖子为我提供了我需要的答案。