How to make RStudio server recognize location of R version

I'm using the free version of Rstudio Server.
And I have a new R version stored under this directory:

/home/ubuntu/.R-4.1.0/bin/R

I want my RStudio to recognize R from that directory.
So I made changes in /etc/rstudio/rserver.conf by adding this line to that file:

rsession-which-r=/home/ubuntu/.R-4.1.0/bin/R

Then I restart the server:

sudo rstudio-server restart

However when I reload my R-studio server, it said the site can't be reached.
How can I resolve the issue?

enter image description here

If the problem were your R configuration, you'd see a different problem. Even with a busted version of R, you should see a login screen when you connect to the server.

Is it possible that the server's running on port 8787 and you haven't exposed that port on your EC2 instance?

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.