Addin that splits full documents into Rmarkdown chunks or wraps highlighted text in an active RStudio document editor in a Rmarkdown chunk.
1 | chunkify()
|
Setting chunky_opts
$set(list(full_doc=TRUE)) chunky will convert entire document by
chunky_opts
$get('token'). The default token is the output from a purl
conversion (## —-chunk name,chunk options—-).
Setting chunky_opts
$set(list(full_doc=FALSE)), user highlights text and chunky will
wrap a new Rmarkdown chunk around it, utilizing the other options in chunky_opts
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.