\HeaderA{Rtangle}{R Driver for Stangle}{Rtangle}
\aliasA{RtangleSetup}{Rtangle}{RtangleSetup}
\keyword{utilities}{Rtangle}
\begin{Description}\relax
A driver for \code{\LinkA{Stangle}{Stangle}} that extracts R code chunks.
\end{Description}
\begin{Usage}
\begin{verbatim}
Rtangle()
RtangleSetup(file, syntax, output = NULL, annotate = TRUE,
             split = FALSE, prefix = TRUE, quiet = FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{file}] Name of Sweave source file.
\item[\code{syntax}] An object of class \code{SweaveSyntax}.
\item[\code{output}] Name of output file, default is to remove extension \file{.nw},
\file{.Rnw} or \file{.Snw} and to add extension \file{.R}. Any
directory names in \code{file} are also removed such that the output
is created in the current working directory.
\item[\code{annotate}] By default, code chunks are separated by comment
lines specifying the names and numbers of the code chunks. If
\code{FALSE}, only the code chunks without any decorating comments
are extracted.
\item[\code{split}] Split output in single files per code chunk?
\item[\code{prefix}] If \code{split = TRUE}, prefix the chunk labels by the
basename of the input file to get output file names?
\item[\code{quiet}] If \code{TRUE} all progress messages are suppressed.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Friedrich Leisch
\end{Author}
\begin{References}\relax
Friedrich Leisch: Sweave User Manual, 2008\\
\url{http://www.stat.uni-muenchen.de/~leisch/Sweave}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{Sweave}{Sweave}}, \code{\LinkA{RweaveLatex}{RweaveLatex}}
\end{SeeAlso}

