CodeBlock {pandocfilters} | 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)