Description Usage Arguments Value Note Author(s) See Also Examples
A driver to parse asciidoc noweb files with Sweave tool This driver parses asciidoc files containing R code and replace pieces of code with their output.
weaverAsciidocSetup
weaverAsciidoc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | RweaveAsciidoc()
weaverAsciiSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "txt",
backend = "asciidoc",
openSchunk = "----",
closeSchunk = "\n----\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n",
closeSoutput = "",
indent = "",
openInclude = "include::",
closeInclude = ".txt[]",
openFig = "image::",
closeFig = "[]",
use.cache = TRUE,
...
)
weaverAsciidoc()
|
use.cache |
use.cache |
None value is returned. From a .Rnw noweb file, the corresponding .txt 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, RweaveAsciidoc 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 weaverAsciidoc
driver.
A wrapper for Sweave
can be used, named Asciidoc
.
David Hajage dhajage@gmail.com
1 2 3 4 | ## Not run:
Asciidoc("file.Rnw")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.