I have downloaded the caret package to my local working directory:
install.packages("caret")
However when I try to load the library I get the following error:
library(caret)
>Loading required package: ggplot2 Error: package or namespace load failed for ‘ggplot2’ in
> loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
> there is no package called ‘rlang’ Error: package ‘ggplot2’ could not
> be loaded
I can see ggplot2 in my library:
lapply(.libPaths(),dir)
[[1]].... "ggplot2" ....
I am using R ver 3.6.2 for Mac OS X on OS Mojave 10.14.4 I haven't encountered this using R in windows, so any input appreciated .