Skip to content

Repeated failures to install "caret" package (of Max Kuhn)

6 messages · Ronald Wyllys, Sarah Goslee, John Kane +2 more

#
For an edx course, MIT's "The Analtics Edge", I need to install the 
"caret" package that was originated and is maintained by Dr. Max Kuhn of 
Pfizer. So far, every effort I've made to try to 
install.packages("caret") has failed.  (I'm using R v. 3.1.3 and RStudio 
v. 0.98.1103 in LinuxMint 17.1)

Here are some of the things I've tried unsuccessfully:
install.packages("caret", repos=c("http://rstudio.org/_packages", 
"http://cran.rstudio.com"))
install.packages("caret", dependencies=TRUE)
install.packages("caret", repos=c("http://rstudio.org/_packages", 
"http://cran.rstudio.com"), dependencies=TRUE)
install.packages("caret", dependencies = c("Depends", "Suggests"))
install.packages("caret", repos="http://cran.rstudio.com/")

I've changed my CRAN mirror from UCLA to Revolution Analytics in Dallas, 
and tried the above installs again, unsuccessfully.

I've succeeded in individually installing a number of packages on which 
"caret" appears to be dependent.  Specifically, I've been able to 
install  "nloptr", "minqa", "Rcpp", "reshape2", "stringr", and 
"scales".  But I've had no success with trying to do individual installs 
of "BradleyTerry2", "car", "lme4", "quantreg", and "RcppEigen".

Any suggestions will be very gratefully received (and tried out quickly).

Thanks in advance.

Ron Wyllys
#
Hi Ron,

Without knowing more it's really hard to help. What error messages are
you getting?
"failed" and "no success" are utterly uninformative - there are many
things that could be wrong.

The first thing, though, is always to check whether you have the
necessary dependencies installed, eg devel libraries.

Sarah
On Fri, Apr 3, 2015 at 5:07 PM, Ronald Wyllys <wyllys at ischool.utexas.edu> wrote:

  
    
#
What is the error message?

Best,
Uwe Ligges
On 03.04.2015 23:07, Ronald Wyllys wrote:
#
Try installing from somewhere outside of RStudio or reboot and retry in RStudio.  I find that if RStudio is open for a long time I occasionally get some weird (buggy?) results but I cannot reproduce to send in an bug report.

Load R  and from the command line or Windows RGui try installing.  As a test I just installed it successully with the command "install.packages("caret")" executed in R (using gedit with its 
R-plug-in) and running Ubuntu 14.04


For future reference:
Reproducibility
https://github.com/hadley/devtools/wiki/Reproducibility
 http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example





John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
#
I thought that this might be relevant:

https://stackoverflow.com/questions/28985759/cant-install-the-caret-package-in-r-in-my-linux-machine

but it seems that you installed nloptr.

I would also suggest doing the install in base R and trying a different
mirror. I would avoid installing via RStudio unless you have just started a
new R session.
On Sat, Apr 4, 2015 at 11:11 AM, John Kane <jrkrideau at inbox.com> wrote:

            

  
  
#
On 04.04.2015 19:56, Max Kuhn wrote:
Private communication showed that the OP did not have liblapack nor 
libblas in the standard locations.

Best,
Uwe Ligges