View source: R/pandocfilters.R
CodeBlock | R Documentation |
Constructs a block object of type "CodeBlock"
.
CodeBlock(attr, code)
attr |
an object of type |
code |
a character string containing the source code. |
attr <- Attr("id", "Programming Language", list(c("key", "value"))) code <- "x <- 3\nprint('Hello R!')" CodeBlock(attr, code)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.