插入安装包,在Ubuntu 14.04 LTS 32位

时间:2015-07-10 20:59:07

标签: r ubuntu

当尝试在Ubuntu 14.04 LTS 32位上安装插入符号包时,我收到以下警告

The downloaded source packages are in

‘/tmp/RtmpnrWGAe/downloaded_packages’ 



 Warning messages:  
1: In install.packages("caret") :
  installation of package ‘nloptr’ had non-zero exit status   
2: In install.packages("caret") :
  installation of package ‘lme4’ had non-zero exit status  
3: In install.packages("caret") :
  installation of package ‘pbkrtest’ had non-zero exit status  
4: In install.packages("caret") :
  installation of package ‘BradleyTerry2’ had non-zero exit status
5: In install.packages("caret") :
  installation of package ‘car’ had non-zero exit status  
6: In install.packages("caret") :
  installation of package ‘caret’ had non-zero exit status  

1 个答案:

答案 0 :(得分:12)

您需要在安装'caret'软件包之前安装所有依赖项。

install.packages(c('lme4', 'pbkrtest', 'BradleyTerry2', 'car', 'caret'))

以上代码应解决问题。

或者您可以使用:

install.packages('caret', dependencies = TRUE)

然后,您可以尝试使用上述命令安装'nloptr'软件包。