| Line 52... |
Line 52... |
| 52 |
###################################################
|
52 |
###################################################
|
| 53 |
### code chunk number 19: trellisdata (eval = FALSE)
|
53 |
### code chunk number 19: trellisdata (eval = FALSE)
|
| 54 |
###################################################
|
54 |
###################################################
|
| 55 |
}
|
55 |
}
|
| 56 |
using either the chunk label or the file name and line numbers.
|
56 |
using either the chunk label or the file name and line numbers.
|
| 57 |
|
57 |
|
| 58 |
Note that this driver does not simple extract the code chunks verbatim
|
58 |
Note that this driver does not simple extract the code chunks verbatim
|
| 59 |
because code chunks can re-use earlier chunks.
|
59 |
because code chunks can re-use earlier chunks.
|
| 60 |
}
|
60 |
}
|
| 61 |
\section{Supported Options}{
|
61 |
\section{Supported Options}{
|
| 62 |
\code{Rtangle} supports the following options for code chunks (the
|
62 |
\code{Rtangle} supports the following options for code chunks (the
|
| 63 |
values in parentheses show the default values):
|
63 |
values in parentheses show the default values):
|
| 64 |
\describe{
|
64 |
\describe{
|
| 65 |
\item{engine:}{character string (\code{"R"}). Only chunks with
|
65 |
\item{engine:}{character string (\code{"R"}). Only chunks with
|
| 66 |
\code{engine} equal to \code{"R"} or \code{"S"} are processed.}
|
66 |
\code{engine} equal to \code{"R"} or \code{"S"} are processed.}
|
| 67 |
|
67 |
|
| 68 |
\item{keep.source:}{logical (\code{TRUE}). If \code{keep.source ==
|
68 |
\item{keep.source:}{logical (\code{TRUE}). If \code{keep.source ==
|
| 69 |
TRUE} the original source is copied to the file. Otherwise,
|
69 |
TRUE} the original source is copied to the file. Otherwise,
|
| 70 |
deparsed source is output.}
|
70 |
deparsed source is output.}
|
| 71 |
|
71 |
|
| 72 |
\item{eval:}{logical (\code{TRUE}). If \code{FALSE}, the code chunk
|
72 |
\item{eval:}{logical (\code{TRUE}). If \code{FALSE}, the code chunk
|
| 73 |
is copied across but commented out.}
|
73 |
is copied across but commented out.}
|
| 74 |
|
74 |
|
| 75 |
\item{prefix}{Used if \code{split = TRUE}. See \code{prefix.string}.}
|
75 |
\item{prefix}{Used if \code{split = TRUE}. See \code{prefix.string}.}
|
| 76 |
|
76 |
|
| 77 |
\item{prefix.string:}{a character string, default is the name of the
|
77 |
\item{prefix.string:}{a character string, default is the name of the
|
| 78 |
source file (without extension). Used if \code{split = TRUE} as
|
78 |
source file (without extension). Used if \code{split = TRUE} as
|
| 79 |
the prefix for the filename if the chunk has no label, or if it
|
79 |
the prefix for the filename if the chunk has no label, or if it
|
| 80 |
has a label and \code{prefix = TRUE}. Note that this is used as
|
80 |
has a label and \code{prefix = TRUE}. Note that this is used as
|
| 81 |
part of filenames, so needs to be portable.}
|
81 |
part of filenames, so needs to be portable.}
|
| 82 |
|
82 |
|
| 83 |
\item{show.line.nos}{logical (\code{FALSE}). Should the output be
|
83 |
\item{show.line.nos}{logical (\code{FALSE}). Should the output be
|
| 84 |
annotated with comments showing the line number of the first code line
|
84 |
annotated with comments showing the line number of the first code line
|
| 85 |
of the chunk?}
|
85 |
of the chunk?}
|
| 86 |
}
|
86 |
}
|
| 87 |
}
|
87 |
}
|
| 88 |
|
88 |
|
| 89 |
\author{Friedrich Leisch and R-core.}
|
89 |
\author{Friedrich Leisch and R-core.}
|
| 90 |
\seealso{
|
90 |
\seealso{
|