Learn R Programming

rmarkdown (version 2.28)

rmd_metadata: R Markdown Metadata

Description

Rmd files include a metadata section (typically located at the top of the file) that can specify (among other things) the title, author, and date of the document. Metadata adheres to the YAML format and is delimited by lines containing three dashes (---). Here is an example metadata section:

---
title: "Crop Analysis Q3 2013"
author: Martha Smith
date: October 23rd, 2013
---

Note that the title field is quoted. This is because titles often contained embedded colons (:) and colons followed by a space need to be quoted in YAML.

Arguments

Details

When title, author, and date metadata is provided it's used to automatically create a title section within output documents. If you don't want this section included in your document then you should remove the corresponding metadata fields.

When generating PDF and Beamer output there are also a number of other metadata fields that can be included to customize the appearance and theme of PDF output. For more details see the documentation for pdf_document and beamer_presentation.