read_chunk_rmd: Read chunks from an Rmarkdown file

Description Usage Arguments See Also

View source: R/utils_sourceRmd.R

Description

Extends the functionality of knitr::read_chunk() to read from .Rmd files.

Usage

1
read_chunk_rmd(path, labels = NULL, prevent_overwrite = c("setup"))

Arguments

path

Path to the R script.

labels

Character vector of chunk labels (default NULL).

prevent_overwrite

Character vector of chunk labels in the current document to prevent overwriting of; default is just the "setup" chunk.

See Also

knitr::read_chunk(), knitr::purl()


adamleejohnson/r-tools documentation built on Jan. 7, 2022, 5:35 p.m.