noweave | R Documentation |
Write a TeX file from a noweb source file.
noweave(file, out, indent=1, syntax=nowebSyntax, ...)
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). |
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.
Terry Therneau
notangle
## Not run:
# Create the TeX file of documentation for the noweb library
noweave("noweb.Rnw"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.