Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Reproducibility with R Markdown

Slides

A key principle of data science is reproducibility: you should be able to hand your inputs and your code to a new researcher so that they can reproduce your result exactly. In this course, we will use R Markdown for assignments because it creates an output file that communicates results and embeds the code to produce those results.

This class is based on R4DS Ch 27, which is a terrific resource on R Markdown.

Optional reading

Hutson, M. (2018). Artificial intelligence faces reproducibility crisis. Science.

Liu, D. M., & Salganik, M. J. (2019). Successes and struggles with computational reproducibility: Lessons from the Fragile Families Challenge. Socius, 5.

Summary video: What we covered today