RweaveOrg | R Documentation |
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()
file |
file |
syntax |
syntax |
output |
output |
quiet |
quite |
debug |
debug |
... |
... |
use.cache |
use.cache |
None value is returned. From a .Rnw noweb file, the corresponding .org 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, RweaveOrg 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 weaverOrg
driver.
A wrapper for Sweave
can be used, named Org
.
David Hajage dhajage@gmail.com
Sweave
, Org
## Not run:
Org(system.file("examples/Org-test-1.nw",package="ascii"))
Org(system.file("examples/Org-test-1.nw",package="ascii"),weaverOrg())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.