Can't Install The Caret Package in R (In My Linux Machine)

How to install Caret package? While installing, I am getting this message

So what worked for me is a bit old school: after installing the caret package and getting that error, I did a quick search on my PC for caret (In my case; I went to ThisPC > RoseAdediran), deleted the caret folder, searched for plyr and deleted the folder as well. Went back to RStudio, restarted the session and tried this code again

install.packages('caret',dependencies=T)
library(caret)

Once you load the library, other imports would be loaded as well.

Caret package failed to install

I have found a solution.I had the same problem. After installing caret with all its dependencies, ddalpha was not installed. Then I tried installing the package ddalpha alone. I got the message:

" There is a binary version available but the source version is later: binary source needs_compilation ddalpha 1.2.1 1.3.1 TRUE

Do you want to install from sources the package which needs compilation?y/n: n"

Well, if I anwser yes, it doesn't work. But when I answer no, it does work. It looks like the new version has some problem, but the previous one works fine.

Caret package installation in R

The error message is clear: package minqa fails to install.

Deal with that first. And show us error for minqa itself.

Once you have it installed, install caret.

PS For what it is worth, all of those install fine on my Ubuntu systems...

unable to install caret package in R

Try any of the following methods:

Edit: changed https to http

install.packages("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz",
repos=NULL, method="libcurl")

or

library(devtools)
install_url("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz")


Related Topics



Leave a reply



Submit