| Line 128... |
Line 128... |
| 128 |
\item For objects which are system data, for example lookup tables
|
128 |
\item For objects which are system data, for example lookup tables
|
| 129 |
used in calculations within the function, use a file
|
129 |
used in calculations within the function, use a file
|
| 130 |
\file{R/sysdata.rda} in the package sources or create the objects by
|
130 |
\file{R/sysdata.rda} in the package sources or create the objects by
|
| 131 |
\R code at package installation time.
|
131 |
\R code at package installation time.
|
| 132 |
}
|
132 |
}
|
| 133 |
A sometimes inportant distinction is that the second approach places
|
133 |
A sometimes important distinction is that the second approach places
|
| 134 |
objects in the namespace but the first does not. So if it is important
|
134 |
objects in the namespace but the first does not. So if it is important
|
| 135 |
that the function sees \code{mytable} as an object from the package,
|
135 |
that the function sees \code{mytable} as an object from the package,
|
| 136 |
it is system data and the second approach should be used.
|
136 |
it is system data and the second approach should be used.
|
| 137 |
}
|
137 |
}
|
| 138 |
\note{
|
138 |
\note{
|