'car' dependency error: Installing caret in R 3.1.2

社会主义新天地 提交于 2020-01-13 19:06:56

问题


Cannot install caret package !!

install.packages("caret")
Installing package into ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning: dependency ‘car’ is not available
trying URL 'http://mirrors.softliste.de/cran/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 ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1/caret’

The downloaded source packages are in
    ‘/tmp/RtmpLbNFrr/downloaded_packages’
Warning message:
In install.packages("caret") :
  installation of package ‘caret’ had non-zero exit status

When I install 'car' package separately, it says:

install.packages("car")
Installing package into ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning message:
package ‘car’ is not available (for R version 3.1.2) 

I am using

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

I downgraded to R 3.1.2 from 3.2 since I was getting some compatibility issues.
Is there any way to use caret without upgrading to R 3.2 as 'car' package is for >= R 3.2.

来源:https://stackoverflow.com/questions/32261094/car-dependency-error-installing-caret-in-r-3-1-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!