draw_yml_tree() draws an ASCII tree of the hierarchy of a given yml object to the console.

draw_yml_tree(.yml = last_yml(), indent = "")

Arguments

.yml

a yml object created by yml(), as_yml(), or returned by a yml_*() function

indent

a character vector used to indent the tree

Value

invisibly, .yml

See also

Examples

# draw the most recently used `yml` draw_yml_tree()
#> ├── author: Hadley Wickham #> ├── date: '2014-09-12' #> ├── title: Tidy Data #> ├── keywords: #> │ ├── - data cleaning #> │ ├── - data tidying #> │ ├── - relational databases #> │ └── - R #> └── subtitle: Hadley's Tidy Data Paper
# \donttest{ yml() %>% yml_output( pdf_document(keep_tex = TRUE), html_document() ) %>% draw_yml_tree()
#> ├── author: Malcolm Barrett #> ├── date: '`r format(Sys.Date())`' #> └── output: #> ├── pdf_document: #> │ └── keep_tex: true #> └── html_document: default
# }