I followed the instructions to run R on AWS to solve local memory issues in computing. I would like to run caret but I am running into this error when I try to load the package using library(caret)
.
Error: package or namespace load failed for ‘caret’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘rlang’ 0.4.7 is already loaded, but >= 1.0.3 is required
I've restarted my Rstudio session and have uninstalled/re-install rlang but the issue persists. I am suspecting the issue is an outdated version of R because
> sessionInfo()
provides:
- R version 4.0.2 (2020-06-22)
- Platform: x86_64-pc-linux-gnu (64-bit)
- Running under: Ubuntu 18.04.5 LTS
Does anyone have any ideas on how to fix the issue?
A similar problem was raised here, but the solution provided did not help.