powered by
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)
A list of components yaml and body.
yaml
body
A character vector of the document content.
xfun::yaml_body(c("---", "title: Hello", "output: markdown::html_document", "---", "", "Content."))
Run the code above in your browser using DataLab