This repo has a number of examples that are used to teach the Data Science & Machine Learning conference talks. The initial use of this package is in the ArchConf 2016.
Look at 0-RBasics/loadPackages.R
for how to setup R and the install the libraries needed to run the examples.
You can download R and the RStudio IDE here: