Reproducible Research and Reports with R Markdown

Video description

R Markdown does three main things pretty close to magic. First, it lets you make a completely reproducible, parameter-set and automatable R report. Second, it lets you export that report into a multitude of formats (HTML, Word, .js slide show, interactive web app, etc.). Third, it does the first two things really fast. Wishing for a way to document your code so it still makes sense to you or somebody else six months down the road? Presto! R Markdown does that. Hoping for a button you could click to reproduce your entire analysis with a new data set or parameter? Shazaam! R Markdown does that. Sick of having to copy and paste your results? Poof! R Markdown takes the pain away. If you’re an analyst, scientist, actuary, statistician, or a programmer familiar with R, you should add this package to your bag of tricks.

  • Learn to create parameter-set reports that are fully reproducible and automatable
  • Master knitr – the syntax used to embed R code and other languages into reports
  • Discover how to export reports into HTML, PDF, Word or .js slideshows
  • Learn techniques that improve the look of tables, slides, and visual themes in reports
  • Combine R Markdown and Shiny to create interactive reports that update in real time
  • Speed up your mastery of R Markdown using the R Markdown cheatsheet

Garrett Grolemund is a Data Scientist with RStudio, one of the largest contributors of content and software related to the open source R language. He is Editor-in-Chief of the Shiny development center at He wrote the popular lubridate R package; the R focused O'Reilly Media titles Hands-On Programming with R, R for Data Science (co-author), and Expert Data Wrangling with R.

Publisher resources

Download Example Code

Table of contents

  1. Introduction
    1. What is R Markdown? 00:07:08
    2. flights.R 00:06:48
    3. Orientation 00:05:21
  2. Reproducible Research
    1. Markdown 00:07:55
    2. Knitr Code Chunks 00:12:37
    3. Advanced knitr 00:10:13
    4. Tables 00:09:04
    5. Parameters 00:15:20
  3. Dynamic Reports
    1. Output Formats 00:08:51
    2. Slides Syntax 00:04:32
    3. Customizing Output 00:07:54
    4. Citations and Bibliographies 00:07:59
    5. Interactive Documents 00:06:04
    6. Templates 00:15:49
  4. Where to now?
    1. Resources 00:03:53

Product information

  • Title: Reproducible Research and Reports with R Markdown
  • Author(s): Garrett Grolemund
  • Release date: May 2016
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491959527