RweaveAsciidoc {ascii}R Documentation

A driver to parse asciidoc noweb files with Sweave tool

Description

This driver parses asciidoc files containing R code and replace pieces of code with their output.

Usage

  RweaveAsciidoc()

Value

None value is returned. From a .Rnw noweb file, the corresponding .txt is produced (as eventuals files for graphs).

Note

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:[].

Author(s)

David Hajage dhajage@gmail.com

See Also

Sweave

Examples


  ## Not run: 
library(tools)
Sweave("file.Rnw",driver=RweaveAsciidoc)
  
## End(Not run)

[Package ascii version 0.1.3 Index]