yml_verbatim: Write YAML field or content verbatim

View source: R/yml_helpers.R

yml_verbatimR Documentation

Write YAML field or content verbatim

Description

yml_verbatim() is a helper function to write YAML precisely as given to the yml_*() function rather than the defaults in ymlthis and yaml. ymlthis uses the yaml package to check for valid syntax; yaml and ymlthis together make decisions about how to write syntax, which can often be done in numerous valid ways. See yaml::as.yaml() for more details.

Usage

yml_verbatim(x)

Arguments

x

a character vector

Value

an object of class verbatim

Examples

# "yes" and "no" serve as alternatives to `true` and `false`. This writes
# "yes" literally.
yml_verbatim("yes")

ymlthis documentation built on Aug. 5, 2022, 5:23 p.m.