R package "caret" cannot be installed

Warning message in install.packages(“caret”):
“installation of package ‘timeDate’ had non-zero exit status”
Warning message in install.packages(“caret”):
“installation of package ‘recipes’ had non-zero exit status”
Warning message in install.packages(“caret”):
“installation of package ‘caret’ had non-zero exit status”
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)

1 Like

Hi @FrankSchmid,

It looks like you need to install it along with it’s dependencies (either via dependencies=TRUE or listing them seperately).

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

or

install.packages('caret', dependencies=c('ddalpha', 'recipes'))

Source: https://stackoverflow.com/a/46176104

2 Likes

Thank you, but neither option successfully installs the caret package. The caret package installed seamlessly a couple of days ago, but the same notebook does not do it today.

Is this an issue within the notebook itself or is it something that occurs once you submit to AIcrowd?

If the latter, do you happen to have a submission ID?

Happens with the notebook. I get stuck at the installation. As mentioned, it worked just yesterday.

Shivam, it works if I install mlr first. (That’s what I had changed.) It is odd, but it works.

install_packages <- function() {

install.packages(“xgboost”)

install.packages(“mlr”)

install.packages(“caret”)

install.packages(“coda”)

install.packages(“data.table”)

install.packages(“cplm”)

}

install_packages()

2 Likes