A driver to parse Pandoc noweb files with Sweave tool This driver parses Pandoc files containing R code and replace pieces of code with their output.
RweavePandocSetup
weaverPandocSetup
weaverPandoc
RweavePandoc()RweavePandocSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "md",
backend = "pandoc",
openSchunk = "~~~~~~{.R}",
closeSchunk = "\n~~~~~~~~~~~\n\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n",
closeSoutput = "",
indent = "",
openInclude = "",
closeInclude = "",
openFig = "![](",
closeFig = ")",
...
)
weaverPandocSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "md",
backend = "pandoc",
openSchunk = "~~~~~~{.R}",
closeSchunk = "\n~~~~~~~~~~~\n\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n",
closeSoutput = "",
indent = "",
openInclude = "",
closeInclude = "",
openFig = "![](",
closeFig = ")",
use.cache = TRUE,
...
)
weaverPandoc()
None value is returned. From a .Rnw noweb file, the corresponding .md is produced (as eventuals files for graphs).
file
syntax
output
quite
debug
...
use.cache
David Hajage dhajage@gmail.com Matti Pastell matti.pastell@helsinki.fi
Sweave
, Pandoc
if (FALSE) {
Pandoc("file.Rnw")
}
Run the code above in your browser using DataLab