# Jeromy Anglim's Blog: Psychology and Statistics

## Thursday, July 19, 2012

### Video: knitr, R Markdown, and R Studio: Introduction to Reproducible Analysis

This post presents the video of a talk that I presented in July 2012 at Melbourne R Users on using knitr, R Markdown, and R Studio to perform reproducible analysis. I also provide links to a github repository where the R markdown examples can be examined and the slides can be downloaded.

### Talk Overview

Reproducible analysis represents a process for transforming text, code, and data to produce reproducible artefacts including reports, journal articles, slideshows, theses, and books. Reproducible analysis is important in both industry and academic settings for ensuring a high quality product. R has always provided a powerful platform for reproducible analysis. However, in the first half of 2012, several new tools have emerged that have substantially increased the ease with which reproducible analysis can be performed. In particular, knitr, R Markdown, and RStudio combine to create a user-friendly and powerful set of open source tools for reproducible analysis.

Specifically, in the talk I discuss caching slow analyses, producing attractive plots and tables, and using RStudio as an IDE. I present three live examples of using R Markdown. I also show how the markdown package on CRAN can be used to work with other R development environments and workflows for report production.

There is a github repository called rmarkdown-rmeetup-2012 that contains:

1. the slides and source code for the slides (I used a combination of beamer, markdown, and pandoc)
2. the source code for the R Markdown examples presented in the talk
3. and assorted brainstorming that recorded some of my thinking as I developed the slides (see the issue tracker)

### Video of Talk

The talk is split over two parts.

### More Videos from Melbourne R Users

We are gradually building up a fairly large back catalogue of videos about R all presented at Melbourne R Users.

The following links were either presented in the talk or are otherwise relevant to reproducible analysis.

If viewing through syndication, feel free to subscribe to my blog on psychology and statistics here.

1. Great talk!

2. Very nice talk Jeromy!

Shared with a few colleagues!

3. Wonderful, thanks for teaching me this material. I believe some of the code may need updating. Go from ...

$to$latex

to display equations.

Thanks,
Wes

1. I think more recent versions of RStudio allow for both forms of equations:
http://rstudio.org/docs/authoring/using_markdown_equations