Hope these help. Please indicate your R version if these could not work for you.
I am facing problem while downloading 'caret' package in R studios. The code below was taken from the caret documentation.
install.packages("caret", dependencies = c("Depends", "Suggests"))
it works fine while installing but it gives Errors and Warnings while unpacking few packages like mentioned below:
ERROR: dependencies ‘eiPack’, ‘ei’, ‘MCMCpack’, ‘Zelig’ are not available for package ‘ZeligEI’
* removing ‘/home/shazil/R/x86_64-pc-linux-gnu-library/3.4/ZeligEI’
Warning in install.packages :
installation of package ‘ZeligEI’ had non-zero exit status
At the end when the whole installation process is finished it says:
The downloaded source packages are in
‘/tmp/RtmpeiP5GO/downloaded_packages’
After that when I use the library() command, the following Error appears
> library(caret)
Error in library(caret) : there is no package called ‘caret’
I am using Ubuntu 16.04, Dell machine Core i5 7th Gen, 6GB RAM AMD RADEON GRAPHICS
Would really appreciate the help as I am new to Data Science and R programming.
I just did a fresh RStudio cloud session and installed caret successfully.
A link to the project is below (there's no content, the only thing run was install.packages("caret", dependencies = TRUE)
:
https://rstudio.cloud/project/42168
install.packages("caret") library(caret)
You need to have both written:
install.packages("caret")
library(caret)
library(devtools)
devtools::install_url("https://cran.r-project.org/src/contrib/caret_6.0-78.tar.gz")
library(devtools)
devtools::install_github('topepo/caret/pkg/caret')
Hope these help. Please indicate your R version if these could not work for you.