RweaveT2t {ascii} | R Documentation |
A driver to parse txt2tags noweb files with Sweave tool This driver parses txt2tags files containing R code and replace pieces of code with their output.
RweaveT2tSetup
weaverT2tSetup
weaverT2t
RweaveT2t() RweaveT2tSetup( file, syntax, output = NULL, quiet = FALSE, debug = FALSE, extension = "t2t", backend = "txt2tags", openSchunk = "```", closeSchunk = "\n```\n", openSinput = "", closeSinput = "", openSoutput = "\n", closeSoutput = "", indent = "", openInclude = "%!include: ", closeInclude = ".t2t", openFig = "[", closeFig = "]", ... ) weaverT2tSetup( file, syntax, output = NULL, quiet = FALSE, debug = FALSE, extension = "t2t", backend = "txt2tags", openSchunk = "```", closeSchunk = "\n```\n", openSinput = "", closeSinput = "", openSoutput = "\n", closeSoutput = "", indent = "", openInclude = "%!include: ", closeInclude = ".t2t", openFig = "[", closeFig = "]", use.cache = TRUE, ... ) weaverT2t()
file |
file |
syntax |
syntax |
output |
output |
quiet |
quite |
debug |
debug |
... |
... |
use.cache |
use.cache |
stylepath |
stylepath |
None value is returned. From a .Rnw noweb file, the corresponding .t2t is produced (as eventuals files for graphs).
In order to work properly, noweb codes have to be located at the beginning of a line (no indentation).
Compare with RweaveLatex driver, RweaveT2t provides one new option :
format
to choose the format of figure that will be inserted in the
final document.
In addition, cache
option from weaver
package is also available with weaverT2t
driver.
A wrapper for Sweave
can be used, named T2t
.
David Hajage dhajage@gmail.com
## Not run: T2t("file.Rnw") ## End(Not run)