Skip to contents

[Deprecated]

Tools for selecting or checking a single node using rmd_subset() selection.

Usage

rmd_get_node(x, sec_refs = NULL, type_refs = NULL, name_refs = NULL, ...)

rmd_get_chunk(x, sec_refs = NULL, name_refs = NULL)

rmd_get_markdown(x, sec_refs = NULL)

rmd_has_node(x, sec_refs = NULL, type_refs = NULL, name_refs = NULL, ...)

rmd_has_chunk(x, sec_refs = NULL, name_refs = NULL, ...)

rmd_has_markdown(x, sec_refs = NULL, ...)

Arguments

x

rmd object, e.g. rmd_ast or rmd_tibble.

sec_refs

Section references, TODO - add details.

type_refs

Node type references, TODO - add details.

name_refs

Name references, TODO - add details.

...

Unused, for extensibility.

Value

  • rmd_get_*() functions returns a single Rmd node object (e.g. rmd_heading, rmd_chunk, rmd_markdown, etc.)

  • rmd_has_*() functions return TRUE if a matching node exists, FALSE otherwise.