View source: R/utils_sourceRmd.R
read_chunk_rmd | R Documentation |
Extends the functionality of knitr::read_chunk()
to read from .Rmd files.
read_chunk_rmd(path, labels = NULL, prevent_overwrite = c("setup"))
path |
Path to the R script. |
labels |
Character vector of chunk labels (default |
prevent_overwrite |
Character vector of chunk labels in the current document to prevent overwriting of; default is just the "setup" chunk. |
knitr::read_chunk()
, knitr::purl()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.