as_document {parsermd}R Documentation

Convert an rmd_ast, rmd_tibble, or any ast node into text.

Description

Convert an rmd_ast, rmd_tibble, or any ast node into text.

Usage

as_document(x, padding = "", collapse = NULL, ...)

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.

...

Unused, for extensibility.

Value

Returns a character vector.


[Package parsermd version 0.1.3 Index]