1
I installed RStudio through Anaconda manager. I managed to update the version of R on my computer to 3.6 (when I type R --version
in my terminal, I get version 3.6), but when I check the version in RStudio using the version
command, it tells me it's using 3.4.3. I tried following the instructions here (https://support.rstudio.com/hc/en-us/articles/200486138-Changing-R-versions-for-RStudio-desktop), although I wasn't able to do the last step
Note that in order for RStudio to see this environment variable when launched from the Ubuntu desktop Applications menu (as opposed to from a terminal) it must be defined in the ~/.profile file.
But I didn't think this was an issue because I was launching from the terminal, not from the desktop application
So I've got two questions about how to proceed
Firstly, how do I find out where on my computer R (version 3.6) is stored?
I was able to find a bash script called R in /usr/bin
. But then there's also a directory called R in /usr/lib
. So I'm not exactly sure what RStudio is looking for. Which path do I give it? I tried installing an R package earlier just to see where it would end up. It looked like it was about to put it in /usr/lib/R/site-library
, but then it prompted me to create a personal library in my home directory. So now I have three different R-related directories/files on my computer (that I know of), and don't know which one RStudio wants.
Secondly, once I figure out what RSTudio is looking for, how do I redirect RStudio to that location? The export $RSTUDIO_WHICH_R=/usr/bin/R
instruction didn't seem to work. So how do I get it