RweaveAsciidoc {ascii} | R Documentation |
This driver parses asciidoc files containing R code and replace pieces of code with their output.
RweaveAsciidoc()
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 four new options :
res
for the resolution of jpg or png figure (if produced),
ext
(extension) for the format of figure that will be inserted, and
png
and jpg
(from R2HTML
package) to produce png and jpg figures.
ascii
package provides a SweaveSyntax object (SweaveSyntaxAscii
).
If used, \SweaveOpts{}
is replaced by SweaveOpts:[]
,
and \Sexpr{}
is replaced by Sexpr:[]
.
David Hajage dhajage@gmail.com
## Not run: library(tools) Sweave("file.Rnw",driver=RweaveAsciidoc) ## End(Not run)