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 = "")
invisibly, .yml
Other yml:
asis_yaml_output()
,
bib2yml()
,
has_field()
,
read_json()
,
use_yml_defaults()
,
use_yml_file()
,
use_yml()
,
yml_author()
,
yml_blogdown_opts()
,
yml_bookdown_opts()
,
yml_citations()
,
yml_clean()
,
yml_distill_opts()
,
yml_latex_opts()
,
yml_output()
,
yml_pagedown_opts()
,
yml_params()
,
yml_pkgdown()
,
yml_reference()
,
yml_replace()
,
yml_resource_files()
,
yml_rsconnect_email()
,
yml_rticles_opts()
,
yml_runtime()
,
yml_site_opts()
,
yml_toc()
,
yml_vignette()
# 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()
#> ├── date: '`r format(Sys.Date())`'
#> └── output:
#> ├── pdf_document:
#> │ └── keep_tex: true
#> └── html_document: default
# }