pgfSweaveDriver {pgfSweave}R Documentation

The Sweave driver for pgfSweave

Description

An Sweave driver for caching code chunks and image files making for speedy compilation.

Usage

pgfSweaveDriver()

pgfSweaveSetup(file, syntax,
               output = NULL, quiet = FALSE, debug = FALSE, echo = TRUE,
               eval = TRUE, split = FALSE, stylepath = TRUE, pdf = FALSE,
               eps = FALSE, cache = FALSE, pgf = FALSE, tikz = TRUE,
               external=FALSE, tex.driver = "pdflatex")

Arguments

file A connection or a character string giving the name of the Sweave file to load.
syntax See RweaveLatex
output See RweaveLatex
quiet See RweaveLatex
debug See RweaveLatex
echo See RweaveLatex
eval See RweaveLatex
split See RweaveLatex
stylepath See RweaveLatex
pdf See RweaveLatex. Note the default is changed to FALSE
eps See RweaveLatex. Note the default is changed to FALSE
cache See cacheSweaveDriver
tikz Set default for option tikz, see details below.
pgf Set default for option pgf, see details below.
external Set default for option external, see details below.
tex.driver Set default for option tex.driver, see details below.

Details

To only compile an Rnw to a tex file, pgfSweaveDriver should be used as the driver option to Sweave. Otherwise use the pgfSweave function for a simple way to compile to pdf.

Value

Nothing useful returned.

New options

This function provides new options for use in code chunks

external
Use the graphics externalization feature of the TeX package pgf. Once a graphic is created, a code chunk is not evaluated again until changes are made. Essentially the graphic is ``cached'' (defaults to FALSE).
tikz
Generate a TikZ commands in a .tikz file with the tikzDevice package for inclusion with \input{graphic.tikz} this takes the place of an \includegraphics statement. This will cause the font in the graphic to match that of the main document. (defaults to TRUE). We recommend using this option over the pgf option for both speed and text consistancy (the pgf) option will strip text formatting such as boldface.
pgf
Generate an eps file and use the eps2pgf utility to generate a pgf graphic for inclusion with \input{graphic.pgf} thi takes the place of an \includegraphics statement. The -m directcopy option is used so that LaTeX code can be directly used in titles (see the eps2pgf manual, http://sourceforge.net/projects/eps2pgf/). This also causes the font in the graphic to match that of the main document. (defaults to FALSE)
tex.driver
A character string giving the LaTeX driver to use for compiling external graphics (defaults to ``pdflatex'')

All the Sweave and cacheSweave options are available. Note that the defaults for the Sweave options pdf and eps are set to FALSE unlike Sweave and cacheSweave.

Note

Author(s)

Cameron Bracken cameron.bracken@gmail.com and Charlie Sharpsteen

References

Sweave manual: http://www.statistik.lmu.de/~leisch/Sweave/Sweave-manual.pdf

cacheSweave vignette: http://cran.r-project.org/web/packages/cacheSweave/vignettes/cacheSweave.pdf

See Also

pgfSweave, pgfSweaveDriver, cacheSweave, Sweave, tikzDevice


[Package pgfSweave version 1.0.3 Index]