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 highlight
enabling
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 (renderer_latex
)
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.