I am having trouble accessing the caret library. I'm using RStudio. Here is my error:
Error: package or namespace load failed for ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
object 'vI' not found
The code I used to install the caret package is below, it ran fine without issues:
install.packages("caret", dependencies = c("Depends", "Suggests"))
I am using R version 4.1.2. I tried this after switching to 3.6.3 but got the same error. I have tried a few other packages and they are working. I'm on Windows 10. I really appreciate any help!