Skip to content

Instantly share code, notes, and snippets.

Avatar
🍺
Thirsty

Phill phillc73

🍺
Thirsty
View GitHub Profile
@phillc73
phillc73 / rpackagesonremotelinuxserver.txt
Last active Jan 19, 2016
Installing R packages on remote Linux server
View rpackagesonremotelinuxserver.txt
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.
@phillc73
phillc73 / systimeUTC
Created Dec 11, 2014
Convert Current System Time to UTC using R
View systimeUTC
as.POSIXlt(Sys.time(), tz = "UTC")