The Source

All these web pages have been generated using knitr, so that I write a web page with embedded R code, then knitr processes it to produce the finished web page with output and plots

Part of that process produces a folder with just the bare R code files. Apart from an initial chunk of code to set up some things with knitr, these files will run in R and produce the same output as the web pages.

Sometimes I hide chunks of code from the web pages for learning purposes - for example the dice rolling example in the folder has my yahtzee rolling algorithm towards the end.