print.yamlet: Print a Yamlet

View source: R/yamlet.R

print.yamletR Documentation

Print a Yamlet

Description

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)

See Also

Other yamlet: [.yamlet(), as.character.yamlet(), as_yamlet.character(), as_yamlet.data.frame(), as_yamlet.list(), as_yamlet.yamlet(), as_yamlet.yam(), as_yamlet()

Examples

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

yamlet documentation built on Oct. 6, 2023, 9:07 a.m.