Rep Res ExampleProject1

An full example reproducible research project for "Reproducible Research with R and RStudio"

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
|_
   Analysis
   |_
      Data

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
cd

make

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
setwd("Rep-Res-ExampleProject1/")

# Load the knitr package
library(knitr)

# Article.pdf
knit2pdf("Article.Rnw")

# Slideshow.pdf
knit2pdf("Slideshow.Rnw")

# Website.html
knit2html("Website.Rmd")

License

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