Sweave driver using the highlight latex renderer to perform syntax highlighting of input R code in sweave chunks.
1 2 3
background color for code boxes.
color to use for the border of code boxes.
Can be used instead of the other arguments to
This sweave driver is very similar to standard driver that is
included in utils. The difference is that input R code and
verbatim output is rendered using
syntax highlighting of R code.
Instead of using Sinput and Soutput commands, this driver uses Hinput and Houtput and defines these commands at the very beginning of the document, letting the user the option to overwrite them as necessary.
Latex boxes defined by the latex renderer (
and style definitions needed are also written at the beginning
of the document.
Because highlight does not use verbatim environments, the user of this driver can freely redefine the Hinput, Houtput and Hchunk environments to achieve greater control of the output latex document than with the standard driver.
A sweave driver, suitable for the driver argument of
Romain Francois <[email protected]>
Friedrich Leisch. Sweave: Dynamic generation of statistical reports using literate data analysis. In Wolfgang Härdle and Bernd Rönz, editors, Compstat 2002 - Proceedings in Computational Statistics, pages 575-580. Physica Verlag, Heidelberg, 2002. ISBN 3-7908-1517-9
the standard sweave latex driver:
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.