I wrote up an instruction here:
https://stackoverflow.com/a/65146119/3020740
I wrote up an instruction here:
https://stackoverflow.com/a/65146119/3020740
Interestingly I could install R packages from terminal sudo R
It turned out that the folder that Jupyter Lab R points to is different from what sudo R points to as well.
Eventually, to solve the problem, Martin wiped out my R installation directory. And probably it's a good idea for me not to install packages on sudo R but from notebook directly then.
"To initialize your shell, run..."
I ran "conda init bash" and restarted server but still couldn't solve the problem.
The solution from Kelvin:
in your ~/.bash_profile
add source activate root
right at the top
And then start a new linux terminal session
There was another R issue (see my next blog)
Follow this instruction:
https://sites.google.com/a/mendeley.com/mendeley-training/home/learn/organize/file-organizer