In bash: R -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'
Even though phantomjs is dead, it is quite useful anyway in a nice Rscript.
Headless Chrome with R Selenium: https://github.com/ropensci/RSelenium/issues/138
You might have a couple of issues with mailR when running on a server.
When installing or after installing the r package: rJava you might encounter the following: libjvm.so: cannot open shared object file: No such file or directory
I fixed this on a ubuntu server with this command: sudo R CMD javareconf
How to make a nice time stamp with date and time in R:
now <- strptime(Sys.time(), "%Y-%m-%d%T")
time_stamp <- sprintf("%s", now )