verbatim_logical: Alternative logical handler

View source: R/verbatim_logical.R

verbatim_logicalR Documentation

Alternative logical handler

Description

A yaml handler function that causes logical vectors to emit true/false instead of yes/no values.

Usage

verbatim_logical(x)

Arguments

x

logical vector to convert to true/false.

Details

Pass this function to as.yaml() as part of the handler argument list like list(logical = verbatim_logical).

Value

Returns a vector of strings of either true or false of class verbatim.

Author(s)

Charles Dupont and James Goldie (jimjam-slam)

See Also

as.yaml

Examples

vector <- c(TRUE, FALSE, TRUE)

as.yaml(vector, handlers=list(logical=verbatim_logical))

yaml documentation built on Sept. 11, 2024, 7:23 p.m.

Related to verbatim_logical in yaml...