Skip to contents

Coerces list to yamlet. Assigns class 'yamlet'. Checks that list has names.

Usage

# S3 method for class 'list'
as_yamlet(x, ...)

Arguments

x

list

...

ignored

Value

yamlet

Examples

x <- list(a = 2, b = 3)
as_yamlet(x)
#> - a: 2
#> - b: 3