I wrote this as an excercise in creating a R package. Hopefully somebody will find it useful.
Install the CRAN package in R like this:
install.packages("st3")
library("st3")
Install the Swirl tutorial in R like this:
swirl.install("st3")
swirl()