I am trying to install R package caret
Which gives me ERROR: dependencies ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’ are not available for package ‘caret’
I tried to install each of this individually, which again shows installation going on, ending with message that installation of package ‘X’ had non-zero exit status
1: In install.packages("caret") :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("caret") :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("caret") :
installation of package ‘scales’ had non-zero exit status
4: In install.packages("caret") :
installation of package ‘reshape2’ had non-zero exit status
5: In install.packages("caret") :
installation of package ‘lme4’ had non-zero exit status
6: In install.packages("caret") :
installation of package ‘ggplot2’ had non-zero exit status
7: In install.packages("caret") :
installation of package ‘BradleyTerry2’ had non-zero exit status
8: In install.packages("caret") :
installation of package ‘caret’ had non-zero exit status
Ask recursively to install some package. What is the issue?
I had older version, where I was getting similar error. I removed and installed latest. Currently version is R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
, but still getting similar error message
UPDATE
STarted with : install.packages('caret', repos='http://cran.rstudio.com/')
which displays message:
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘minqa’, ‘RcppEigen’, ‘scales’, ‘lme4’, ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’
and process ends with :
installing to /usr/local/lib/R/site-library/reshape2/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : package ‘stringr’ was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package ‘reshape2’
* removing ‘/usr/local/lib/R/site-library/reshape2’
ERROR: dependencies ‘minqa’, ‘RcppEigen’ are not available for package ‘lme4’
* removing ‘/usr/local/lib/R/site-library/lme4’
ERROR: dependencies ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
* removing ‘/usr/local/lib/R/site-library/ggplot2’
ERROR: dependency ‘lme4’ is not available for package ‘BradleyTerry2’
* removing ‘/usr/local/lib/R/site-library/BradleyTerry2’
ERROR: dependencies ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’ are not available for package ‘caret’
* removing ‘/usr/local/lib/R/site-library/caret’
The downloaded source packages are in
‘/tmp/RtmpcLo8Rw/downloaded_packages’
Warning messages:
1: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘minqa’ had non-zero exit status
2: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘RcppEigen’ had non-zero exit status
3: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘scales’ had non-zero exit status
4: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘reshape2’ had non-zero exit status
5: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘lme4’ had non-zero exit status
6: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘ggplot2’ had non-zero exit status
7: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘BradleyTerry2’ had non-zero exit status
8: In install.packages("caret", repos = "http://cran.rstudio.com/") :
installation of package ‘caret’ had non-zero exit status
I had also similar issue with caret package installation.
I use Linux Mint 17.3 Cinnamon 64-bit:
First caret installation with the command
gave the error messages as follows ...
...
...
Then I tried to run
But it didn't work and gave same errors about llapack etc. Next I ran on the linux command line:
(this install necessary libraries)
And after that the command
worked very well and so did also
So this liblapack-dev was answer to me.
Happy end and thanks for hints in this discussion!
I've had typical problem.
When i was started to load dependencies packages i found error:
was installed by an R version with different internals
Reinstall these packages helped me
As the caret Documentation suggests execute
install.packages("caret", dependencies = c("Depends", "Suggests"))
to ensure that all the needed packages are installed and resolve all the dependenciesI faced similar dependencies issues while trying to install caret on R:
I found that 'caret' didn't ask anymore for dependencies once I installed from O.S. an older 'car' version from R-car-2.0_21-1.8.x86_64.rpm package:
Then:
(*) I used a local repository 'cause there is not direct internet connection, but repo location is irrelevant.
I had a similar issue. I used
install.packages("caret", dependencies = c("Depends"), repos='http://cran.rstudio.com/')
and got
ERROR: dependency 'car' is not available for package 'caret'
Installing car separately via R did not work but with package manager of my distro (Fedora)
dnf install R-car
Then the first command was successfull.
I have similar issue when I installed caret package. The problem I found was caused by updating package dependency. Updating some packages will also change their dependency that may not have the right version for later use in other packages. Like when I install caret, it shown:
The solution I found is to first find which package cause the problem. You can get this information by just install the package you want. For me, the one is "minqa". So just install this package independently.
My problem solved by this way.
For you, you need to install "‘minqa’, ‘RcppEigen’, ‘scales’, ‘lme4’, ‘ggplot2’, ‘reshape2’, ‘BradleyTerry2’" one by one.