Learn R Programming

yamlet (version 1.2.0)

print.yamlet: 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 yamlet
print(x, ..., simplify = getOption("yamlet_print_simplify", TRUE))

Value

invisible(x)

Arguments

x

yamlet

...

ignored

simplify

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

See Also

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

Examples

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

Run the code above in your browser using DataLab