Document functions

parse_rmd()

Parse an R Markdown document

as_ast()

Convert an object into an rmd_ast.

as_document()

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

reexports

Objects exported from other packages

render()

Render parsermd objects using rmarkdown::render()

rmd_source()

Source the code chunks of an Rmd document

Subsetting functions

rmd_select()

Select nodes of an Rmd ast

has_type() by_section() has_label() has_option()

Rmd selection helper functions

Node functions

rmd_node_label() rmd_node_type() rmd_node_length() rmd_node_content() rmd_node_attr() rmd_node_engine() rmd_node_options() rmd_node_code()

rmd node utility functions

rmd_node_sections()

Find the sections for each rmd object node

rmd_set_options() rmd_get_options()

Get and set code chunk options

Template functions

rmd_template()

Create a template from an rmd object.

rmd_check_template()

Check an Rmd against a template

Deprecated functions

rmd_subset()

Subset the nodes of an rmd object

rmd_get_node() rmd_get_chunk() rmd_get_markdown() rmd_has_node() rmd_has_chunk() rmd_has_markdown()

rmd_subset utility functions