Include a YAML header in write2
For yaml()
, arguments to be bundled into a list and passed to as.yaml
.
For print.yaml()
, extra arguments. For c.yaml()
, "yaml" objects to be concatenated.
An object of class "yaml"
.
Not in use at this time.
A text string of class "yaml"
.
x <- yaml(title = "My cool title", author = "Ethan P Heinzen")
x
#> ---
#> title: My cool title
#> author: Ethan P Heinzen
#> ---
y <- yaml("header-includes" = list("\\usepackage[labelformat=empty]{caption}"))
y
#> ---
#> header-includes:
#> - \usepackage[labelformat=empty]{caption}
#> ---
c(x, y)
#> ---
#> title: My cool title
#> author: Ethan P Heinzen
#> header-includes:
#> - \usepackage[labelformat=empty]{caption}
#> ---