Description Usage Arguments Value Author(s) Examples
The most simple renderer. It simply writes tokens as they are on the input file
1 2 3 4 5 6 7 8 9 10 | renderer_verbatim(translator = translator_verbatim,
formatter = formatter_verbatim, space = space_verbatim,
newline = newline_verbatim, header = header_verbatim,
footer = footer_verbatim, ...)
translator_verbatim(x, size)
formatter_verbatim( tokens, styles, ...)
space_verbatim()
newline_verbatim()
header_verbatim()
footer_verbatim()
|
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 |
A renderer object.
Romain Francois <romain@r-enthusiasts.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.