我想在Caret R软件包中使用功能选择,但我无法在我的linux机器上安装它。我尝试了各种各样的事情,我还在dependencies=TRUE
内使用install.packages
但没有结果。有什么帮助吗?
这是日志:
Warning: dependency 'car' is not available trying URL 'http://cran.rstudio.com/src/contrib/caret_6.0-52.tar.gz' Content type 'application/x-gzip' length 3665293 bytes (3.5 Mb) opened URL ================================================== downloaded 3.5 Mb ERROR: dependency 'car' is not available for package 'caret' * removing '/usr/lib64/R/library/caret' The downloaded source packages are in '/tmp/RtmpKfvgyR/downloaded_packages' Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning message: In install.packages("caret") : installation of package âcaretâ had non-zero exit status > > sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-redhat-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base
更新
我已将R升级到版本3.2.1,现在我可以安装插入包了。只需sudo yum install R
即可解决。