Trouble installing RStudio Server on Ubuntu--can't find R, but it's there

install
rstudioserver

#1

I tried installing RStudio Server according to the docs. I got this error:

balter@spectre:~$ sudo rstudio-server verify-installation
Unable to find an installation of R on the system (which R didn't return valid output); Unable to locate R binary by scanning standard locations
balter@spectre:~$ which R
/home/balter/conda/bin/R
balter@spectre:~$ Rscript -e 'print("hello")'
[1] "hello"

#2

Did you really follow the docs? It says that to install R you should use:

sudo apt-get install r-base

but you are using Conda to install it. So when it tries ...scanning standard locations, it fails.


#3

Well, I want to use the conda R, so what do I do? Can I set the path to R somewhere?


#4

Found the answer here: