Skip to contents

[Deprecated] Subset an rmd object based on sections, node types, or names.

Usage

rmd_subset(
  x,
  sec_refs = NULL,
  type_refs = NULL,
  name_refs = NULL,
  exclude = FALSE,
  keep_yaml = TRUE,
  keep_setup = FALSE,
  ...
)

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.

exclude

Should the matching nodes be excluded.

keep_yaml

Should the document yaml be kept.

keep_setup

Should the document setup chunk be kept.

...

Unused, for extensibility.

Value

Returns a subset Rmd object (either rmd_ast or rmd_tibble depending on input).