renderer_verbatim: A dummy renderer

Description Usage Arguments Value Author(s) Examples

View source: R/renderer.R

Description

The most simple renderer. It simply writes tokens as they are on the input file

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10

Arguments

translator

Dummy translator. Returns the input as it is.

formatter

Dummy formatter. Returns the tokens as they are, the styles argument is not used.

space

return a space character

newline

return a newline character

header

return an empty character vector

footer

return a newline character

...

Additional ignored arguments.

x

The input of the translator, returned as is

tokens

The tokens to format. They are returned as is by the formatter

styles

The styles to use to format the tokens. They are not used

size

font size. ignored

Value

A renderer object.

Author(s)

Romain Francois <romain@r-enthusiasts.com>

Examples

1
2
3
4
5
6
7
8
## Not run: 
r <- renderer_verbatim()
r$space()
r$header()
r$translator( "rnorm" )
r$formatter( "rnorm", "blue")

## End(Not run)

Dasonk/highlight documentation built on May 6, 2019, 1:37 p.m.