When I install caret with.
install.packages("caret", dependencies=c("Depends", "Suggests"))
library(caret)
## Loading required package: lattice
## Loading required package: ggplot2
Error in LoadNamespace(i, c(lib.loc, .libPaths()), versionCheck=vI[[i]]): there is no package called 'digest'
Error: package 'ggplot2' could not be loaded.
So I resolve the issue with the package digest by installing caret using this code and what do I get again:
install.packages("caret", dep="TRUE")
library(caret)
## Loading required package: lattice
## Loading required package: ggplot2
Error in LoadNamespace(i, c(lib.loc, .libPaths()), versionCheck=vI[[i]]): there is no package called 'gtable'
Error: package 'ggplot2' could not be loaded.
How do I install caret successfully without this kind of errors, especially the ggplot2 error!
my R Version is R 3.2.2
install.packages("ggplot2")
? – Rigorisminstall.packages("caret", dep="TRUE")
should beinstall.packages("caret", dep=TRUE)
(without quotes, so it's a boolean instead of a string) – Talishatalismanupdate.packages()
. Sounds like you've gotten your package versions out-of-sync somehow. – Mcgriff.libPaths()
? – Simeon