different versions of R

I recently compiled and installed R version 4.3.2 from source. When I start R in an interactive bash shell I get the version that I installed. I am running POP_OS 22.04, a variant of Ubuntu 22.04.

R.version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 3.2
year 2023
month 10
day 31
svn rev 85441
language R
version.string R version 4.3.2 (2023-10-31)
nickname Eye Holes

However, starting RStudio I get R 4.3.1. My RStudio version is RStudio 2023.09.1 Build 494.

R.version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 3.1
year 2023
month 06
day 16
svn rev 84548
language R
version.string R version 4.3.1 (2023-06-16)
nickname Beagle Scouts

How can I get RStudio to use the version of R that I most recently installed?

Does this work for you?

Sadly, it does not.

jcarson@pop-os:~ export RSTUDIO_WHICH_R=/usr/local/bin/R jcarson@pop-os:~ rstudio

does not cause RStudo to run the version of R at /usr/local/bin/R

You can specify the R-version to use in etc/rstudio/rserver.conf and add an entry like this: rsession-which-r=/usr/local/bin/R. Dont forget to restart rstudio-server.service.

Thanks! However, I'm using RStudio desktop.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.