Last active
January 19, 2016 21:00
-
-
Save phillc73/56526a0b7f00c725fbea to your computer and use it in GitHub Desktop.
Installing R packages on remote Linux server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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