I was trying to update my libraries. At some point, I got an error with 'rlang'. I tried installing it:
Error in install.packages : Updating loaded packages
Two complaints here:
a) when I did this with a list, the error message failed to tell me which package(s) out of the list failed.
b) The error message is too vague, I wasn't sure what was wrong or how to fix it. It did occur to me to uninstall and reinstall, which I did.
I should mention the whole thing started with loading another library, which in turn, try to load ggplot2:
> library(Hmisc) # for minor.tick() used in plotting;
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.3.0.1 is already loaded, but >= 0.3.1 is required
Error: package ‘ggplot2’ could not be loaded
A third problem that occurs, is when I tried to install 'rlang' (without first uninstalling it), I get a message that R needs to be restarted with a restart button. After I click on it, the install fails, then it says I need to restart R... etc.
I'm not sure if this is an R or R Studio problem
I'm a bit behind, so I'll do an update after I post this.
RStudio Version 1.1.456
"R version 3.4.4 (2018-03-15)"
VERSION="16.04.5 LTS (Xenial Xerus)"
PRETTY_NAME="Ubuntu 16.04.5 LTS"