[英]R: Can't install certain packages
I noticed that I am unable to install a bunch of packages. 我注意到我无法安装一堆软件包。 It started then I was trying to install the package carat .
它开始了,那时我正尝试安装克拉套件。 I would get this long error.
我会得到这个长错误。
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
installing the dependencies 'robustbase', 'ddalpha', 'recipes'
individually beforehand doesn't work either. 事先单独安装依赖项
'robustbase', 'ddalpha', 'recipes'
也不起作用。
I also noticed that I am unable to update the packages 我还注意到我无法更新软件包
I'm currently using R version 3.3.2
and RStudio Version 1.0.136
. 我目前正在使用
R version 3.3.2
和RStudio Version 1.0.136
。 I have been using R and RStudio for months and have never had an issues installing packages. 我已经使用R和RStudio几个月了,从来没有安装软件包的问题。 I have done a bunch of searching on Google and Stack-overflow and found some solutions.
我在Google和Stack-overflow上做了很多搜索,找到了一些解决方案。 None of them have worked for me.
他们都没有为我工作。
The error in my output was 我的输出中的错误是
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
I found this thread that provided me with the answer I needed. 我发现此线程为我提供了所需的答案。
OS X package installation depends on gfortran-4.8 OS X软件包的安装取决于gfortran-4.8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.