2017-10-17 356 views
0

我注意到我無法安裝一堆軟件包。它開始,然後我試圖安裝包克拉。我會得到這個很長的錯誤。R:無法安裝某些軟件包

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上進行了大量搜索,並找到了一些解決方案。他們都沒有爲我工作。

+0

你可以嘗試添加'依賴= TRUE'到'install.packages' – emilliman5

+1

你選擇什麼樣的鏡子,當你運行'install.packages()'?也許嘗試一個不同的。運行'chooseCRANmirror()'更改默認值。 – MrFlick

+0

嘗試添加'dependencies = TRUE'。我已經嘗試過'0-Cloud','Canada(MB)'和'USA(CA 1)'。 – Regis

回答

0

在我的輸出錯誤是

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 package installation depends on gfortran-4.8