Reporting with R Markdown

Learn to create interactive analyses and automated reports with R Markdown.

Start Course for Free
3 Hours8 Videos31 Exercises64,727 Learners
2550 XP

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Learn how to write a data report quickly and effectively with the R Markdown package, and share your results with your friends, colleagues or the rest of the world. Learn how you can author your own R Markdown reports, and how to automate the reporting process so that you have your own reproducible reports. By the end of the interactive data analysis reporting tutorial, you will be able to generate reports straight from your R code, documenting your work — and its results — as an HTML, pdf, slideshow or Microsoft Word document.

  1. 1

    Authoring R Markdown Reports


    Begin with a real life case study written in R code and then learn to narrate the code, adding interpretations, explanations, and descriptions with Markdown, the text syntax at the heart of R Markdown.

    Play Chapter Now
    Section 1 - Introduction
    50 xp
    The R Markdown Exercise interface
    100 xp
    Explore R Markdown
    100 xp
    Section 2 - R code for your report
    50 xp
    Prepare the workspace for preliminary analysis
    100 xp
    Prepare your data
    100 xp
    Experiment with plot generation
    100 xp
    Prepare a model component
    100 xp
    Section 3 - Markdown
    50 xp
    Styling narrative sections
    100 xp
    Lists in R Markdown
    100 xp
    LaTeX equations
    100 xp
  2. 2

    Embedding Code

    Weave your code and narration into a single document and then render the document to create a finished report that includes both the code and its output. Understand how to customize this process, and open the door for automated, targeted reporting.

    Play Chapter Now
  3. 3

    Compiling Reports

    This chapter will show you how to generate an HTML, pdf, or Microsoft Word version of your report, as well as a pdf or HTML slideshow. Discover how to customize details of the output, and how to combine R Markdown with Shiny and ggvis.

    Play Chapter Now
  4. 4

    Configuring R Markdown (optional)

    The optional video tutorial and exercises in this chapter will help you configure your personal computer to use the R Markdown package.

    Play Chapter Now


Filip Schouwenaars


Introduction to R
Team RStudio Headshot

Team RStudio

See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA