Personal package with R functions by Peter Smittenaar. Install at your own risk.
install.packages("devtools")
devtools::install_github('petersmittenaar/peterr')
library(peterr)
Rscript build.r
from command line.
Hilary Parker's guide to writing your own personal package, Karl Broman's package, and Hadley Wickham.