Skip to content

Instantly share code, notes, and snippets.

View phillc73's full-sized avatar
🍺
Thirsty

Phill phillc73

🍺
Thirsty
View GitHub Profile
@phillc73
phillc73 / systimeUTC
Created December 11, 2014 15:53
Convert Current System Time to UTC using R
as.POSIXlt(Sys.time(), tz = "UTC")
@phillc73
phillc73 / rpackagesonremotelinuxserver.txt
Last active January 19, 2016 21:00
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.