CodeBlock: Code Block Object
Description
Code Block Object. A code block object is a block of text
treated as verbatim text in a document object.
Usage
CodeBlock(file, text, text.properties = textProperties(color = "#A7947D"),
par.properties = parProperties(text.align = "left", shading.color =
"#5FB0B8"))
Arguments
file
script file. Not used if text is provided.
text
character vector. The text to parse. Not used if file is provided.
text.properties
default textProperties object
par.properties
default parProperties object
Examples
Run this code# NOT RUN {
cb_example <- CodeBlock( text = "ls -a\nwhich -a ls" )
# }
Run the code above in your browser using DataLab