powered by
Constructs a block object of type "CodeBlock".
"CodeBlock"
CodeBlock(attr, code)
an object of type "Attr"
"Attr"
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)
Run the code above in your browser using DataLab