Literate programming in R with RStudio and Knitr