Skip to content

Instantly share code, notes, and snippets.

@phillc73
Last active January 19, 2016 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillc73/56526a0b7f00c725fbea to your computer and use it in GitHub Desktop.
Save phillc73/56526a0b7f00c725fbea to your computer and use it in GitHub Desktop.
Installing R packages on remote Linux server
Note that instead of launching R and installing the packages from R, I’m doing it from the terminal with sudo su - -c "R ..."
. Why? Because if you log into R and install packages, by default they will be installed in your personal library and will
only be accessible to the current user (dean in this case). By running the command the way I do above, it installs the
packages as the root user, which means the packages will be installed in a global library and will be available to all users.
http://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/
Note: This trick saves headaches with crontab executing R scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment