Description Usage Arguments Author(s) See Also
The function purl_chunks takes an Rmarkdown file and returns each chunk as a seperate R file. It was found on stackoverflow at (https://stackoverflow.com/questions/35855837/with-knitr-preserve-chunk-options-when-purling-chunks-into-separate-files)
1 | purl_chunks(input_file, input_path = "src/chunks")
|
input_file |
String of the input file name to the Rmarkdown file that will be purlled into seperate chunks |
input_path |
String of the path where to place the R files of each of the chunks |
Kirk Gosik <kdgosik@gmail.com>
knitr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.