metadata

0th

Percentile

The YAML metadata of the current R Markdown document

The object metadata stores the YAML metadata of the current R Markdown document as a list, which you may use in the R code chunks, e.g. rmarkdown::metadata$title (the title of the document), rmarkdown::metadata$author, and rmarkdown::metadata$foo (if you have a YAML field named foo), etc.

Keywords
datasets
Format

An object of class list of length 0.

Aliases
  • metadata
Examples
# NOT RUN {
rmarkdown::metadata
# }
Documentation reproduced from package rmarkdown, version 1.12, License: GPL-3

Community examples

Looks like there are no examples yet.