Skip to content
R for the Rest of Us Logo

RMarkdown Overview

This lesson is locked

Get access to all lessons in this course.

If the video is not playing correctly, you can watch it in a new window


Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Create a new project. Don't worry too much about what's it called, etc because we'll only use this for a bit to demonstrate how RMarkdown works.

  2. Create a new RMarkdown file, setting the default output format as Word.

  3. Save your RMarkdown file as report.Rmd.

  4. Look through this RMarkdown file and make sure that you can identify the YAML, text sections, and code chunks.

  5. Click the Knit button and open the file that gets produced (report.docx).

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Béatrice Leydier

Béatrice Leydier

March 25, 2021

I've noticed my document by default doesn't include a date and author - I can easily add in manually, but was wondering if it was a setting I should change in my Rstudio app?

David Keyes

David Keyes Founder

September 18, 2021

Yup, you can definitely change it! I'll usually do HTML when I first start something because it's easiest. I'll then later change to a different format depending on what I need for my final deliverable.

Payal Mulchandani

Payal Mulchandani

September 20, 2021

Getting an error which says - Required package version could not be found: caTools 1.14 is not available. What do I need to update ?

Patricia Montano

Patricia Montano

January 10, 2022

This is very cool!! I'm looking forward to the next sections and already seeing how this could be time saver.

Tatiana Bustos

Tatiana Bustos

July 22, 2022

Had no idea R could do this with reports! VERY COOL

Jonathan Han

Jonathan Han

October 3, 2022

Hi David,

I was experimenting the formats that we could product upon knitting RMarkdown. However, I ran into some trouble while attempting to produce a PDF output.

The error message on the 'compile PDF' tab was — Unable to find specific LaTeX program 'pdfLaTeX' on system path.

Does this mean that I might have to additionally install other packages to enable this?