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()
None value is returned. From a .Rnw noweb file, the corresponding .t2t is produced (as eventuals files for graphs).
file
syntax
output
quite
debug
...
use.cache
David Hajage dhajage@gmail.com
Sweave
, T2t
if (FALSE) {
T2t("file.Rnw")
}
Run the code above in your browser using DataLab