I am having the same issue as well. Running install.packages("caret", dependencies = TRUE) as advised, but at the end of a very lengthy install process calling caret gives this error:
library(caret)
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 ‘dimRed’
Installing "dimRed" does not work initially as it says that:
Warning in install.packages :
dependency ‘Biobase’ is not available
Biobase needs to be installed manually:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("Biobase", version = "3.8")
So the steps for me were: (1) install Biobase as above, (2) install dimRed, (3) install caret