| Line 18... |
Line 18... |
| 18 |
This documentation describes some existing methods, and also outlines
|
18 |
This documentation describes some existing methods, and also outlines
|
| 19 |
how to write new ones.
|
19 |
how to write new ones.
|
| 20 |
}
|
20 |
}
|
| 21 |
\section{Methods}{
|
21 |
\section{Methods}{
|
| 22 |
\describe{
|
22 |
\describe{
|
| 23 |
\item{.Object = "ANY"}{
|
23 |
\item{\code{signature(.Object = "ANY")}}{
|
| 24 |
The default method for \code{initialize} takes either named or
|
24 |
The default method for \code{initialize} takes either named or
|
| 25 |
unnamed arguments. Argument names must be the names of slots in
|
25 |
unnamed arguments. Argument names must be the names of slots in
|
| 26 |
this class definition, and the corresponding arguments must be
|
26 |
this class definition, and the corresponding arguments must be
|
| 27 |
valid objects for the slot (that is, have the same class as
|
27 |
valid objects for the slot (that is, have the same class as
|
| 28 |
specified for the slot, or some superclass of that class). If the
|
28 |
specified for the slot, or some superclass of that class). If the
|
| Line 42... |
Line 42... |
| 42 |
Then named arguments are processed. Therefore, explicit values
|
42 |
Then named arguments are processed. Therefore, explicit values
|
| 43 |
for slots always override any values inferred from superclass or
|
43 |
for slots always override any values inferred from superclass or
|
| 44 |
subclass arguments.
|
44 |
subclass arguments.
|
| 45 |
}
|
45 |
}
|
| 46 |
|
46 |
|
| 47 |
\item{.Object = "traceable"}{
|
47 |
\item{\code{signature(.Object = "traceable")}}{
|
| 48 |
Objects of a class that extends \code{traceable} are used to
|
48 |
Objects of a class that extends \code{traceable} are used to
|
| 49 |
implement debug tracing (see class \linkS4class{traceable} and
|
49 |
implement debug tracing (see class \linkS4class{traceable} and
|
| 50 |
\code{\link{trace}}).
|
50 |
\code{\link{trace}}).
|
| 51 |
|
51 |
|
| 52 |
The \code{initialize} method for these classes takes special
|
52 |
The \code{initialize} method for these classes takes special
|
| Line 54... |
Line 54... |
| 54 |
is the object to use as the original definition (e.g., a
|
54 |
is the object to use as the original definition (e.g., a
|
| 55 |
function). The others correspond to the arguments to
|
55 |
function). The others correspond to the arguments to
|
| 56 |
\code{\link{trace}}.
|
56 |
\code{\link{trace}}.
|
| 57 |
}
|
57 |
}
|
| 58 |
|
58 |
|
| 59 |
\item{.Object = "environment"}{
|
59 |
\item{\code{signature(.Object = "environment")}}{
|
| 60 |
The \code{initialize} method for environments takes a named list
|
60 |
The \code{initialize} method for environments takes a named list
|
| 61 |
of objects to be used to initialize the environment.
|
61 |
of objects to be used to initialize the environment.
|
| 62 |
}
|
62 |
}
|
| 63 |
|
63 |
|
| 64 |
\item{.Object = "signature"}{
|
64 |
\item{\code{signature(.Object = "signature")}}{
|
| 65 |
This is a method for internal use only.
|
65 |
This is a method for internal use only.
|
| 66 |
It takes an optional \code{functionDef} argument to provide a
|
66 |
It takes an optional \code{functionDef} argument to provide a
|
| 67 |
generic function with a \code{signature} slot to define the
|
67 |
generic function with a \code{signature} slot to define the
|
| 68 |
argument names. See \link{Methods} for details.
|
68 |
argument names. See \link{Methods} for details.
|
| 69 |
}
|
69 |
}
|