| Line 48... |
Line 48... |
| 48 |
analysis in the same file that also produces the report.
|
48 |
analysis in the same file that also produces the report.
|
| 49 |
|
49 |
|
| 50 |
\code{Sweave} combines the documentation and code chunks (or
|
50 |
\code{Sweave} combines the documentation and code chunks (or
|
| 51 |
their output) into a single document. \code{Stangle} extracts only
|
51 |
their output) into a single document. \code{Stangle} extracts only
|
| 52 |
the code from the Sweave file creating an \R source file that can be
|
52 |
the code from the Sweave file creating an \R source file that can be
|
| 53 |
run using \code{\link{source}}. (Code inside \code{\\Sexpr\{\}}
|
53 |
run using \code{\link{source}}. (Code inside \verb{\Sexpr{}}
|
| 54 |
statements is ignored by \code{Stangle}.)
|
54 |
statements is ignored by \code{Stangle}.)
|
| 55 |
|
55 |
|
| 56 |
\code{Stangle} is just a wrapper to \code{Sweave} specifying a
|
56 |
\code{Stangle} is just a wrapper to \code{Sweave} specifying a
|
| 57 |
different default driver. Alternative drivers can be used and are
|
57 |
different default driver. Alternative drivers can be used and are
|
| 58 |
provided by various contributed packages.
|
58 |
provided by various contributed packages.
|
| Line 84... |
Line 84... |
| 84 |
objects are consulted in turn, and selected if their \code{extension}
|
84 |
objects are consulted in turn, and selected if their \code{extension}
|
| 85 |
component matches (as a regexp) the file name. Objects
|
85 |
component matches (as a regexp) the file name. Objects
|
| 86 |
\code{SweaveSyntaxNoweb} (with \code{extension = "[.][rsRS]nw$"}) and
|
86 |
\code{SweaveSyntaxNoweb} (with \code{extension = "[.][rsRS]nw$"}) and
|
| 87 |
\code{SweaveSyntaxLatex} (with \code{extension = "[.][rsRS]tex$"}) are
|
87 |
\code{SweaveSyntaxLatex} (with \code{extension = "[.][rsRS]tex$"}) are
|
| 88 |
supplied, but users or packages can supply others with names matching
|
88 |
supplied, but users or packages can supply others with names matching
|
| 89 |
the pattern \code{SweaveSyntax.*}.
|
89 |
the pattern \samp{SweaveSyntax.*}.
|
| 90 |
}
|
90 |
}
|
| 91 |
|
91 |
|
| 92 |
\author{
|
92 |
\author{
|
| 93 |
Friedrich Leisch and R-core.
|
93 |
Friedrich Leisch and R-core.
|
| 94 |
}
|
94 |
}
|