Rstudio-server environment variables not loading? Rstudio-server environment variables not loading? hadoop hadoop

Rstudio-server environment variables not loading?


You should set your environment variables in .Renviron or Renviron.site. I think these files are defined under R_HOME/etc/Renviron.site. You can get more information by typing:

> ?Startup

Someone had a similar issue here and this is what he did to solve it.


Note that on Windows, R looks for the .Renviron file in /Users/<name>/Documents, while RStudio appears to expect the .Renviron file to be in /Users/<name>/.


You should set your environment variables in Rstudio like

Sys.setenv("/path to hadoop")

and then you try this