I just reloaded RStudio for Windows on my PC (10/3/22) but am getting this error when loading caret package:
Error: package or namespace load failed for ‘caret’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘cli’ 3.3.0 is already loaded, but >= 3.6.1 is required
I've tried to remedy this by
installing: install.packages("cli") and
reinstalling caret using both "install.packages('caret')" and "install.packages("caret", dependencies = c("Depends", "Suggests")"
but to no avail.