CodeBlock {pandocfilters} | R Documentation |
Code Block
Description
Constructs a block object of type "CodeBlock"
.
Usage
CodeBlock(attr, code)
Arguments
attr |
an object of type |
code |
a character string containing the source code. |
Examples
attr <- Attr("id", "Programming Language", list(c("key", "value")))
code <- "x <- 3\nprint('Hello R!')"
CodeBlock(attr, code)
[Package pandocfilters version 0.1-6 Index]