arsenal (version 2.0.0)

yaml: Include a YAML header in write2

Description

Include a YAML header in write2

Usage

yaml(...)

# S3 method for yaml print(x, ...)

# S3 method for yaml c(..., recursive = FALSE)

is.yaml(x)

Arguments

...

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.

x

An object of class "yaml".

recursive

Not in use at this time.

Value

A text string of class "yaml".

See Also

as.yaml, write2

Examples

Run this code
# NOT RUN {
x <- yaml(title = "My cool title", author = "Ethan P Heinzen")
x
y <- yaml("header-includes" = list("\\usepackage[labelformat=empty]{caption}"))
y
c(x, y)
# }

Run the code above in your browser using DataCamp Workspace