CodeBlock

0th

Percentile

Code Block Object

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

See Also

addCodeBlock

Aliases
  • CodeBlock
Examples
# NOT RUN {
#START_TAG_TEST
cb_example = CodeBlock( text = "ls -a\nwhich -a ls" )
#STOP_TAG_TEST
# }
Documentation reproduced from package ReporteRs, version 0.8.2, License: GPL-3

Community examples

Looks like there are no examples yet.