Lately, I’ve been using Rmarkdown + Make to perform statistical analysis and generate reports.

I saw Shaun Jackman’s slideshow “Open, reproducible science using Make, RMarkdown and Pandoc” and thought it was lacking a key example: how do you use Make to generate reports from RMarkdown files? So I put together a little recipe for doing just that. It is a basic project directory structure and a tiny Makefile that automatically renders Rmarkdown files to HTML.