Learn R Programming

odfWeave (version 0.8.4)

RweaveOdf: R/ODF Driver for Sweave

Description

A driver for Sweave that translates R code chunks in XML files produced in Open Document Format (ODF) files.

Usage

RweaveOdf()
RweaveOdfSetup(file, syntax, output = NULL, quiet = FALSE, debug = FALSE, echo = TRUE, eval = TRUE, ...)

Arguments

file
Name of Sweave source file.
syntax
An object of class SweaveSyntax.
output
Name of output file, default is to remove extension ‘.nw’, ‘.Rnw’ or ‘.Snw’ and to add extension ‘.xml’. Any directory names in file are also removed such that the output is created in the current working directory.
quiet
If TRUE all progress messages are suppressed.
debug
If TRUE, input and output of all code chunks is copied to the console.
echo
set default for option echo, see details below.
eval
set default for option eval, see details below.
...
optional arguments. This is used to pass the control object to the driver

Supported Options

RweaveOdf supports the following options for code chunks (the values in parentheses show the default values):
echo:
logical (TRUE). Include S code in the output file?
eval:
logical (TRUE). If FALSE, the code chunk is not evaluated, and hence no text or graphical output produced.
results:
character string (verbatim). If verbatim, the output of S commands is included in the verbatim-like Soutput environment. If xml, the output is taken to be already proper XML markup and included as is. If hide, then all output is completely suppressed (but the code executed during the weave).
print:
logical (FALSE) If TRUE, each expression in the code chunk is wrapped into a print() statement before evaluation, such that the values of all expressions become visible.
term:
logical (TRUE). If TRUE, visibility of values emulates an interactive R session: values of assignments are not printed, values of single objects are printed. If FALSE, output comes only from explicit print or cat statements.
fig:
logical (FALSE), indicating whether the code chunk produces graphical output. Note that only one figure per code chunk can be processed this way.
Note that image options, such as the image type and size, are set using setImageDefs.

See Also

Sweave, odfWeave, setImageDefs