A driver to parse org noweb files with Sweave tool This driver parses org files containing R code and replace pieces of code with their output.
RweaveOrgSetup
weaverOrgSetup
weaverOrg
RweaveOrg()RweaveOrgSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "org",
backend = "org-mode",
openSchunk = "#+BEGIN_example",
closeSchunk = "\n#+END_example\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n",
closeSoutput = "",
indent = "",
openInclude = "#+INCLUDE: \"",
closeInclude = ".org\"",
openFig = "[[file:",
closeFig = "]]",
...
)
weaverOrgSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "org",
backend = "org-mode",
openSchunk = "#+BEGIN_example",
closeSchunk = "\n#+END_example\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n",
closeSoutput = "",
indent = "",
openInclude = "#+INCLUDE: \"",
closeInclude = ".org\"",
openFig = "[[file:",
closeFig = "]]",
use.cache = TRUE,
...
)
weaverOrg()
None value is returned. From a .Rnw noweb file, the corresponding .org is produced (as eventuals files for graphs).
file
syntax
output
quite
debug
...
use.cache
stylepath
David Hajage dhajage@gmail.com
Sweave
, Org
if (FALSE) {
Org("file.Rnw")
}
Run the code above in your browser using DataLab