I have some problems with using R and Rstdio along with my Jupyter notebook and r in my ubuntu 20.04. I first installed R and Rstudio. This version of R was the latest. (4.0.5). Then I installed conda with the R environment. (This version of R is 3.2.2). after this the Rstudio-Desktop crashed and required libreadline.so.6. which I did by creating a symlink as suggested in libreadline.so.6 issues in ubuntu 18.04.
sudo ln -s libreadline.so.8.0 libreadline.so.6
now Linux only uses the anaconda R as the system default.
when I type Which R
the return is:
/home/x/anaconda3/bin/R
this is the R version 3.2.2. I need to use the r-base version 4.0.5 but Rstudio now runs 3.2.2 version of R and I couldn't knit the Rmarkdowm file to work. I tried
export PATH=/usr/local/bin:$PATH
to be able to set the R PATH the to r-base(4.0.5) that didn't work and when I type R in the terminal it still uses the anaconda path.
/home/x/anaconda3/lib/R/bin/exec/R: /home/x/anaconda3/lib/R/bin/exec/../../lib/../../libtinfo.so.6: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.6)
how can I set the Ubuntu path correctly to r-base(4.0.5) and still be able to use Jupiter notebook and r in an environment? sorry in advance for this question but I spent hours trying to solve it and couldn't fix it.
~/.condarc
file with the entryauto_activate_base: false
so that it doesn't auto activate. To switch between them, you just don't activate anaconda. Then you will get the originalR
and can even do awhich R
to find out its path. – Ray Apr 09 '21 at 09:41