R Markdown Metadata

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 http://www.yaml.org/{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.


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.

  • rmd_metadata
Documentation reproduced from package rmarkdown, version 0.9.5, License: GPL-3

Community examples

Looks like there are no examples yet.