I'm in rstudio (R version 3.4.4) on windows 10. I'd like to install and load the caret package, but I run into difficulties with package dependencies.
When I try to load caret I get an error message.
I've checked out Caret package not available for version 3.4.2 and Installing the caret package in R.
# Packages
my_packages = c("tidyverse", "caret", "leaps")
# Installing
install.packages(my_packages, dependencies = TRUE)
# Loading
lapply(my_packages, library, character.only = TRUE)
# Error
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’
I thought by setting dependencies = TRUE during installation, I'd taken care of any packages needed to load caret. What's going on? Thanks for any help!