An full example reproducible research project for "Reproducible Research with R and RStudio"
R Makefile TeX
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Example Project

Reproducible Research with R and RStudio

Christopher Gandrud

CRC Press/Chapman & Hall division of Taylor & Francis

Updates for the Second Edition

A number of changes have been made to this example for the (forthcoming) Second Edition of Reproducible Research with R and RStudio. Most importantly the file structure has been changed to take full advantage of relative file paths.

To do this the project now has the following file tree:

Presentation documents

For the version of this example from the First Edition see here.

Reproduce the Example

Use the following directions to reproduce the data gathering, analysis, and presentation documents.

First download this repository onto your computer.

Data Gathering

Use the following command line code to reproduce the data gathering:

# Set the working directory to Analysis/Data in this repository as needed for
your system


Note that you will need to have GNU Make set up on your computer.

Analysis & Presentation Documents

Use the following code to reproduce the analysis and presentation documents:

# Set the working directory to this repository as needed for your system

# Load the knitr package

# Article.pdf

# Slideshow.pdf

# Website.html


Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.