to_yamlet.list: Coerce list to yamlet Storage Format

View source: R/yamlet.R

to_yamlet.listR Documentation

Coerce list to yamlet Storage Format

Description

Coerces list to yamlet storage format. Operates recursively on list members.

Usage

## S3 method for class 'list'
to_yamlet(x, ..., bracket_all = FALSE)

Arguments

x

object

...

ignored

bracket_all

FALSE at top level, but TRUE recursively downward; supports 'ITEM: definition' which would otherwise be bracketted

Value

length-one character

See Also

Other to_yamlet: to_yamlet.NULL(), to_yamlet.character(), to_yamlet.default(), to_yamlet.numeric(), to_yamlet.yamlet(), to_yamlet()

Examples

to_yamlet(list())
to_yamlet(list(a = 1, b = 2, c = NULL))
to_yamlet(list(a = 1, b = list(c = 3, d = list(e = 4, f = 'g', 'h'))))
to_yamlet(setNames(1:3, c('a','b',NA)))
to_yamlet(setNames(c(1,2,NA), c('a','b','c')))


bergsmat/yamlet documentation built on Feb. 18, 2024, 5:50 a.m.