I am working on a server without root access.
I need a newer version of R in order to install some libaries.
I am trying to install R in my local folder and to make R Studio Server use it.
I am mocking the process on a local Ubuntu Machine 14.04.5 LTS, but afterwards I would need to perform it on a Red Hat Enterprise Linux Server release 6.9 (Santiago).
What I have tried so far:
cd ~
wget http://cran.rstudio.com/src/base/R-3/R-3.4.3.tar.gz tar xvf R-3.4.3.tar.gz cd R-3.4.3
I tried this:
./configure --prefix=$HOME/R --enable-R-shlib
But it failed due to not due to not having libX11 installed on the Ubuntu machine. So, I proceeded with:
./configure --prefix=$HOME/R --enable-R-shlib --without-x
make && make install
I added these lines to my ~/.bashrc file:
export PATH="$HOME/R/bin:$PATH"
export RSTUDIO_WHICH_R="$HOME/R/lib/R/bin/R"
After all this which R gives the correct R location. If I type R in the console I get to the new version of R.
On my ubuntu machine, I switched to sudo user and restarted the RStudio Server. Something potentially I could ask for the administrators of the RedHat machine.
However, even after restart, when I log into RStudio Server from a webbrowser with the account which has the new R version, I still get to use the old version of R.
Any ideas what I am doing wrong?
Thanks