Learn R Programming

noweb (version 1.1-4)

noweave: 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 noweb as created by the nwread function.

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).

Author

Terry Therneau

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.

See Also

notangle