Writing a Reproducible Paper in R Markdown

17 Pages Posted: 22 May 2018 Last revised: 15 Dec 2018

See all articles by Paul C. Bauer

Paul C. Bauer

Mannheim Centre for European Social Research (MZES)

Date Written: December 14, 2018


The present paper provides a template for a reproducible scientific paper written in R Markdown. Below I outline some of the "tricks"/code (e.g., referencing tables, sections etc.) I had to figure out to produce this document. The underlying files which produce this document can be downloaded here (see paper). I think I got pretty far but there is always room for improvement and more automatization, in parallel to the incredible developments in R and Rstudio (bookdown etc.). I intend to update this file when I discover more convenient code.

Keywords: R, R Markdown, Reproducibility, Open Science

Suggested Citation

Bauer, Paul C., Writing a Reproducible Paper in R Markdown (December 14, 2018). Available at SSRN: https://ssrn.com/abstract=3175518 or http://dx.doi.org/10.2139/ssrn.3175518

Paul C. Bauer (Contact Author)

Mannheim Centre for European Social Research (MZES) ( email )


Register to save articles to
your library


Paper statistics

Abstract Views
PlumX Metrics

Under construction: SSRN citations while be offline until July when we will launch a brand new and improved citations service, check here for more details.

For more information