Description Usage Arguments Value
Extracts chunks whose labels match a pattern from the rmd file.
1 | extract_chunks(rmd_name, pattern)
|
rmd_name |
A character string, the name of the rmd file to get the chunks from. |
pattern |
The pattern to match within the label. In fact, the match is applied to the whole chunk option. |
A list of character vectors. Each vector contains the chunk from the file. If no pattern is specified, all chunks are returned. Remember that the chunk header and tail are also included in the returned list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.