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)
purl_chunks(input_file, input_path = "src/chunks")
String of the input file name to the Rmarkdown file that will be purlled into seperate chunks
String of the path where to place the R files of each of the chunks
Kirk Gosik <firstname.lastname@example.org>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.