I use knitr and jekyll to produce these reproducible R pages. Here are the steps:
Set up jekyll-bootstrap, optionally with a GitHub repository.
Set up a folder called
_R to contain your .Rmd files that will be compiled.
Put the following script into
knitpages.R. When run, this will regenerate pages in the
pages directory from any newer files in the
(To-do: have the script be run as part of the Jekyll updating process).
Now, some R code just for fun: