CodeBlock: Code Block Object

Description Usage Arguments See Also Examples

View source: R/CodeBlock.R

Description

Code Block Object. A code block object is a block of text treated as verbatim text in a document object.

Usage

1
2
3
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

See Also

addCodeBlock

Examples

1
cb_example <- CodeBlock( text = "ls -a\nwhich -a ls" )

ReporteRs documentation built on April 1, 2018, 12:06 p.m.