Convert an rmd_ast
, rmd_tibble
, or any ast node into text.
Arguments
- x
rmd_ast
,rmd_tibble
, or parsermd node object.- padding
Padding to add between nodes when assembling the text.
- collapse
If not
NULL
, use value to collapse lines.- use_yaml_opts
Logical. Whether to use YAML format for chunk options (default TRUE).
- ...
Passed to
to_ast()
when convertingrmd_collection
orqmd_collection
.