Learn R Programming

ymlthis (version 0.1.7)

yml_verbatim: 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)

Value

an object of class verbatim

Arguments

x

a character vector

Examples

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

Run the code above in your browser using DataLab