noweave {noweb} | R Documentation |
Extract documentation from a noweb object
Description
Write a TeX file from a noweb source file.
Usage
noweave(file, out, indent=1, syntax=nowebSyntax, ...)
Arguments
file |
an input file containing noweb code, or alternately
an object of class |
out |
a file name on which to write the result. By default this will be the name of the input file with it's final suffix changed to ".tex". |
indent |
the amount to indent code chunks |
syntax |
defines the syntax to detect code chunks. This would rarely if ever be changed by a user. |
... |
extra arguments; unused. (Compatability with Sweave). |
Details
R code written using noweb is a mixture of Latex documentation and
chunks of R code. The noweave
command formats these into a TeX
document which is designed to explain the code to a human.
The notangle
command writes out R files for the computer's use.
Author(s)
Terry Therneau
See Also
Examples
## Not run:
# Create the TeX file of documentation for the noweb library
noweave("noweb.Rnw"
## End(Not run)
[Package noweb version 1.1-4 Index]