The Problem
After updating R to version 3.4.1 (“Single Candle”) on Linux Mint 18.1, RStudio could neither find my installed R packages nor was it possible to install R packages into some other directory.
The Solution
Fortunately, this problem could be solved very easily. I just needed to tell R where to find the libraries of version 3.4 again. On my 64 bit machine, I had to first open the Renviron
file using xed
(Linux Mint text editor).
sudo xed /usr/lib/R/etc/Renviron
Second, I had to enter the following code line and then save and close the file.
R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.4'}
That was it. 🙂