formatCode | R Documentation |
This function is used to take code as text and format it for display in with the appropriate width - number of characters - etc. It is exported so that it can be called from XSL code that performs the formatting.
formatCode(node, defaultWidth = options()$width, ...)
node |
the XML node that contains the R code to be parsed and
formatted.
The node can have attributes that control the formatting, e.g.
|
defaultWidth |
the width to use in the call to |
... |
additional parameters that are currently ignored. Intended for methods. |
A character string.
We may enhance this to format the results in HTML or FO or LaTeX. In fact there is a collection of methods in highlight.R that are overridden but are much more general.
Duncan Temple Lang
dynDoc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.