Include a YAML header in write2
yaml(...) # S3 method for yaml print(x, ...) # S3 method for yaml c(..., recursive = FALSE) is.yaml(x)
... | For |
---|---|
x | An object of class |
recursive | Not in use at this time. |
A text string of class "yaml"
.
Ethan Heinzen, adapted from an idea by Brendan Broderick
x <- yaml(title = "My cool title", author = "Ethan P Heinzen") x#> --- #> title: My cool title #> author: Ethan P Heinzen #> ---#> --- #> header-includes: #> - \usepackage[labelformat=empty]{caption} #> ---#> --- #> title: My cool title #> author: Ethan P Heinzen #> header-includes: #> - \usepackage[labelformat=empty]{caption} #> ---