The YAML header

Reporting with R Markdown

Amy Peterson

Head of Core Curriculum at DataCamp

YAML header

Markdown file with title, author, and HTML specified in YAML header

Knit file with title, author, and HTML specified in YAML header

Reporting with R Markdown

Output types

Markdown file with title, author, and HTML specified in YAML header

 

Markdown file with title, author, and PDF specified in YAML header

Knit file with title, author, and HTML specified in YAML header

 

Knit file with title, author, and PDF specified in YAML header

Reporting with R Markdown

Course exercises

 

 

Knit_PDF_option.png

Reporting with R Markdown

Adding the date manually

Markdown file with date manually entered in YAML header

Knit file with date manually entered in YAML header

Reporting with R Markdown

Adding the date automatically

Markdown file with date added using Sys.Date in YAML header

Knit file with date added using Sys.Date in YAML header

Reporting with R Markdown

Formatting the date

Markdown file with date formatting in YAML header using Sys.time

Knit file with date formatting in YAML header using Sys.time

Reporting with R Markdown

Date formatting options

Table displaying date formatting options

1 https://www.rdocumentation.org/packages/base/topics/strptime
Reporting with R Markdown

Date formatting example

Markdown file with date formatting in YAML header to display the date as month day, year

Knit file with date formatting in YAML header to display the date as month day, year

Reporting with R Markdown

Other date options

Markdown file with date formatting and text in the date field of the YAML header

Knit file with date formatting and text in the date field of the YAML header

Reporting with R Markdown

Let's practice!

Reporting with R Markdown

Preparing Video For Download...