Stangle
that extracts Rcode chunks.Rtangle()
RtangleSetup(file, syntax, output = NULL, annotate = TRUE,
split = FALSE, quiet = FALSE, ...)
Sweave
.SweaveSyntax
.split = TRUE
:
see FALSE
the decorating comments are omitted.TRUE
all progress messages are suppressed.split = TRUE
, the default name of the output file is
basename(file)
with an extension corresponding to the Sweave
syntax (e.g., "stdout"
and "stderr"
are interpreted as the
output and message connection respectively. If splitting is selected (including by the options in the file), each
chunk is written to a separate file with extension the name of the
The annotation is of one of the forms################################################### ### code chunk number 3: viewport ###################################################
################################################### ### code chunk number 18: grid.Rnw:647-648 ###################################################
################################################### ### code chunk number 19: trellisdata (eval = FALSE) ################################################### using either the chunk label or the file name and line numbers.
Note that this driver does not simple extract the code chunks verbatim because code chunks can re-use earlier chunks.