Testing code in RMarkdown documents with knitr

Over the last few months, Literate Programming¬† has proved to be a huge help to me in documenting my exploratory code in R. Writing Rmarkdown documents and building them with knitr not only provides me a greater opportunity to clarify my code in plain English, it also allows me to rationalise why I did something…