metadata | R Documentation |
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.
An object of class list
of length 0.
rmarkdown::metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.