Description Usage Arguments Value
Clean the source text from a cell.
1 2 3 4 5 | clean_source(
cell_source = list(),
cell_type = c("code", "markdown"),
keep_comments = TRUE
)
|
cell_source |
The code source as a list of lines of text. |
cell_type |
The type of cell the source came from. |
keep_comments |
Should comments (# ...) be kept in code cells? |
A character vector of length 1, where the cleaned text has been
collapsed into a single string (lines delimited by \n
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.