Skip to contents

Prints a yamlet object for interactive inspection. By default, lists with no names (recursively) that unlist to identical length are displayed in one line for compactness. If this seems misleading, you can turn it of with options(yamlet_print_simplify = FALSE).

Usage

# S3 method for class 'yamlet'
print(x, ..., simplify = getOption("yamlet_print_simplify", TRUE))

Arguments

x

yamlet

...

ignored

simplify

whether to collapse the display of very simple lists into one line of output

Value

invisible(x)

Examples

as_yamlet('mpg: [efficiency, mi/gallon]\nvs: [Engine, [V-shaped: 0, straight: 1]]')
#> - mpg
#>  - label: efficiency
#>  - guide: mi/gallon
#> - vs
#>  - label: Engine
#>  - guide
#>   - V-shaped: 0
#>   - straight: 1