Examples for 'xfun::yaml_body'


Partition the YAML metadata and the body in a document

Aliases: yaml_body

Keywords:

### ** Examples

xfun::yaml_body(c("---", "title: Hello", "output: litedown::html_format", "---",
    "", "Content."))
$yaml
$yaml$title
[1] "Hello"

$yaml$output
[1] "litedown::html_format"


$body
[1] ""         ""         ""         ""         ""         "Content."

$lines
[1] 1 4

[Package xfun version 0.49 Index]