read_chunk_rmd: Read chunks from an Rmarkdown file

View source: R/utils_sourceRmd.R

read_chunk_rmdR Documentation

Read chunks from an Rmarkdown file

Description

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

Usage

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-ajtools documentation built on April 4, 2022, 7:24 a.m.