SweaveUtils {utils} | R Documentation |
Sweave Driver Utilities
Description
Utility functions for Sweave drivers.
Usage
RweaveChunkPrefix(options)
RweaveEvalWithOpt(expr, options)
RweaveTryStop(err, options)
.RtangleCodeLabel(chunk)
SweaveHooks(options, run = FALSE, envir = .GlobalEnv)
Arguments
options |
named list of character strings. |
expr |
expression to be evaluated. |
err |
value of an expression or invisible object inheriting from
class |
chunk |
text of a code chunk. |
run |
evaluate the hook functions? |
envir |
the environment in which the hook function is to be evaluated. |
Details
These are internal utility functions for the Sweave drivers. Look at
the source code of the RweaveLatex
and
Rtangle
drivers (in this package) or the HTML driver (in
the R2HTML package from CRAN) to see how they can be used.
RweaveChunkPrefix
returns the prefix string for a chunk,
following options prefix
and prefix.string
of the
drivers.
RweaveEvalWithOpt
and RweaveTryStop
handle the
evaluation of code chunks and resulting errors, if any.
.RtangleCodeLabel
builds the label used in the annotations for
an unlabeled code chunk.
SweaveHooks
evaluates (when run = TRUE
) the hook
functions and returns the names of the active hooks for a code chunk.
Author(s)
Friedrich Leisch, with contributions by Seth Falcon and Vincent Goulet.
See Also
The Sweave
, RweaveLatex
and
Rtangle
help pages.