RweaveExtraLatex | R Documentation |
A driver for Sweave
extending the standard driver
RweaveLatex
with additional code chunk options.
RweaveExtraLatex()
RweaveExtraLatexSetup(file, syntax, output = NULL, quiet = FALSE,
debug = FALSE, stylepath, ignore.on.weave = FALSE,
ignore = FALSE, ...)
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 |
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.
Named list
of five functions; see Sweave
or the ‘Sweave User Manual’ vignette in the utils
package.
Vincent Goulet, based on work by Friedrich Leisch and R-core.
RtangleExtra
, RweaveLatex
,
Sweave
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.