yaml_body | R Documentation |
Split a document into the YAML metadata (which starts with ---
in the
beginning of the document) and the body. The YAML metadata will be parsed.
yaml_body(x, ...)
x |
A character vector of the document content. |
... |
Arguments to be passed to |
A list of components yaml
(if YAML metadata exists) and body
.
xfun::yaml_body(c("---", "title: Hello", "output: markdown::html_document", "---",
"", "Content."))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.