RweaveExtraLatex {RweaveExtra} | R Documentation |
R/LaTeX Driver for Sweave with Additional Options
Description
A driver for Sweave
extending the standard driver
RweaveLatex
with additional code chunk options.
Usage
RweaveExtraLatex()
RweaveExtraLatexSetup(file, syntax, output = NULL, quiet = FALSE,
debug = FALSE, stylepath, ignore.on.weave = FALSE,
ignore = FALSE, ...)
Arguments
file |
Name of Sweave source file. See the description of the
corresponding argument of |
syntax |
An object of class |
output |
Name of output file. See
|
quiet |
If |
debug |
If |
stylepath |
See |
ignore.on.weave |
If |
ignore |
An alternative way to set both |
... |
See |
Details
Chunks ignored on weaving are not parsed and are not evaluated, but
they are written out on tangling as normal code chunks (unless
ignore=TRUE
).
If ignore.on.weave
or ignore
is FALSE
, the code
chunk is processed using the standard driver
RweaveLatex
with its options.
Value
Named list
of five functions; see Sweave
or the ‘Sweave User Manual’ vignette in the utils
package.
Author(s)
Vincent Goulet, based on work by Friedrich Leisch and R-core.
See Also
RtangleExtra
, RweaveLatex
,
Sweave
.
Examples
testfile <- system.file("examples", "example-extra.Rnw", package = "RweaveExtra")
## Check the contents of the file
if(interactive()) file.show(testfile)
## Weave, then tangle the file in the current working directory
Sweave(testfile, driver = RweaveExtraLatex())
Stangle(testfile, driver = RtangleExtra())
## View weaved and tangled files
if(interactive()) file.show("example-extra.tex")
if(interactive()) file.show("example-extra.R")