I'm running R Studio on an EC2 instance. The instance was old and didn't come with the latest version of R, so I updated it myself using these commands.
sudo yum-builddep R
wget https://cran.r-project.org/src/base/R-3/R-3.5.3.tar.gz
tar xvzf R-3.5.3.tar.gz
cd R-3.5.3
./configure --prefix=/opt/R/3.5.3 --enable-R-shlib
make
sudo make install
./configure --prefix=/opt/R/3.5.3 --enable-R-shlib --with-blas --with-lapack
sudo ln -s /opt/R/3.5.3/bin/R /bin/R
It's on this Linux box.
How do I update the version of R that my R Studio Server uses?
I've tried
RSTUDIO_WHICH_R=/opt/R/3.5.3/bin/R
sudo RSTUDIO_WHICH_R=/opt/R/3.5.3/bin/R
export RSTUDIO_WHICH_R=/opt/R/3.5.3/bin/R
When I enter Which R
, it still gives me the location for the old version of R.
/bin/R