View source: R/decorate_chunk.R
code_from_editor | R Documentation |
Raw editor text has been taken from an active RStudio session via
rstudioapi::getSourceEditorContext()
. Chunk delimiters and html is
removed, all formatting is otherwise preserved.
code_from_editor(.contents, chunk_name)
.contents |
chunk contents passed from editor context |
chunk_name |
label of chunk |
chunk text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.