Learn R Programming

pandocfilters (version 0.1-6)

CodeBlock: Code Block

Description

Constructs a block object of type "CodeBlock".

Usage

CodeBlock(attr, code)

Arguments

attr

an object of type "Attr"

code

a character string containing the source code.

Examples

Run this 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