Session 1 - install caret package
I have tried to install Caret package under RStudio for several times without success. I tried manually install caret from local drive without success. This is the message below after installed caret install.packages("caret", dependencies = c("Depends", "Suggests")) and library(caret):
"Loading required package: lattice
Loading required package: ggplot2
Need help getting started? Try the R Graphics Cookbok: https://r-graphics.org
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘recipes’
In addition: Warning messages:
1: package ‘caret’ was built under R version 3.4.4
2: package ‘lattice’ was built under R version 3.4.4
Session 2- install recipes for caret package
Then, i installed recipes. install.packages("recipes", dependencies = c("Depends", "Suggests")), but i received a lot of error messages. These are some examples:
ERROR: dependency 'xfun' is not available for package 'servr'
ERROR: dependency 'xfun' is not available for package 'tufte'
ERROR: dependency 'callr' is not available for package 'webshot'
There are more than 10 of these error messages after i installed recipes package.
Question is: what should i do to be able to successfully install "caret" package? I need to use findCorrelation from caret package. however, i can't install caret package successfully. Please help me out.
Thank you.