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
as.POSIXlt(Sys.time(), tz = "UTC") |
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. |