The YAML header

Reportistica con 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

Reportistica con 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

Reportistica con R Markdown

Course exercises

 

 

Knit_PDF_option.png

Reportistica con R Markdown

Adding the date manually

Markdown file with date manually entered in YAML header

Knit file with date manually entered in YAML header

Reportistica con 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

Reportistica con 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

Reportistica con R Markdown

Date formatting options

Table displaying date formatting options

1 https://www.rdocumentation.org/packages/base/topics/strptime
Reportistica con 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

Reportistica con 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

Reportistica con R Markdown

Let's practice!

Reportistica con R Markdown

Preparing Video For Download...