Description Usage Arguments See Also Examples
View source: R/hook_title_comment.R
Comment out codes based on their languages.
1 | comment_out(x, engine, extra_syntax = character(0L))
|
x |
A character vector |
engine |
A string that defines the engine of the |
extra_syntax |
A named character vector which defines extra syntax to comment out.
Each values should contain |
1 2 3 4 5 6 7 8 9 10 | # Default behaviors
comment_out("R language", "R")
comment_out("Python language", "python")
# A customized behavior
comment_out(
"Python language",
"python",
extra_syntax = c("python" = '"""%s"""')
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.