Learn R Programming

Gmisc (version 1.11.0)

yamlDump: Outputs an object

Description

Manually viewing a list object can be tricky where the natural print can be hard to work through. The config format *yaml* is increadibly dense and useful not only for writing configs but also viewing them which `yamlDump` helps with.

Usage

yamlDump(x)

Arguments

x

An object that as.yaml accepts

Value

void

Examples

Run this code
# NOT RUN {
some_fancy_list <- list(complex = list(some_data = 1:3,
                                       other_data = list(name = "Max")),
                        simple = "awesome overview")
yamlDump(some_fancy_list)
#complex:
#  some_data:
#  - 1
#  - 2
#  - 3
#  other_data:
#    name: Max
#simple: awesome overview

# }

Run the code above in your browser using DataLab