| Line 9... |
Line 9... |
| 9 |
\alias{initialize-methods}
|
9 |
\alias{initialize-methods}
|
| 10 |
\alias{initialize,ANY-method}
|
10 |
\alias{initialize,ANY-method}
|
| 11 |
\alias{initialize,traceable-method}
|
11 |
\alias{initialize,traceable-method}
|
| 12 |
\alias{initialize,signature-method}
|
12 |
\alias{initialize,signature-method}
|
| 13 |
\alias{initialize,environment-method}
|
13 |
\alias{initialize,environment-method}
|
| - |
|
14 |
\alias{initialize,.environment-method}
|
| 14 |
\description{
|
15 |
\description{
|
| 15 |
The arguments to function \code{\link{new}} to create an object from a
|
16 |
The arguments to function \code{\link{new}} to create an object from a
|
| 16 |
particular class can be interpreted specially for that class, by the
|
17 |
particular class can be interpreted specially for that class, by the
|
| 17 |
definition of a method for function \code{initialize} for the class.
|
18 |
definition of a method for function \code{initialize} for the class.
|
| 18 |
This documentation describes some existing methods, and also outlines
|
19 |
This documentation describes some existing methods, and also outlines
|
| Line 54... |
Line 55... |
| 54 |
is the object to use as the original definition (e.g., a
|
55 |
is the object to use as the original definition (e.g., a
|
| 55 |
function). The others correspond to the arguments to
|
56 |
function). The others correspond to the arguments to
|
| 56 |
\code{\link{trace}}.
|
57 |
\code{\link{trace}}.
|
| 57 |
}
|
58 |
}
|
| 58 |
|
59 |
|
| 59 |
\item{\code{signature(.Object = "environment")}}{
|
60 |
\item{\code{signature(.Object = "environment")}, \code{signature(.Object = ".environment")}}{
|
| 60 |
The \code{initialize} method for environments takes a named list
|
61 |
The \code{initialize} method for environments takes a named list
|
| 61 |
of objects to be used to initialize the environment.
|
62 |
of objects to be used to initialize the environment. Subclasses
|
| - |
|
63 |
of \code{"environment"} inherit an initialize method through
|
| - |
|
64 |
\code{".environment"}, which has the additional effect of
|
| - |
|
65 |
allocating a new environment. If you define your own method for
|
| - |
|
66 |
such a subclass, be sure either to call the existing method via
|
| - |
|
67 |
\code{\link{callNextMethod}} or allocate an environment in your
|
| - |
|
68 |
method, since environments are references and are not duplicated
|
| - |
|
69 |
automatically.
|
| 62 |
}
|
70 |
}
|
| 63 |
|
71 |
|
| 64 |
\item{\code{signature(.Object = "signature")}}{
|
72 |
\item{\code{signature(.Object = "signature")}}{
|
| 65 |
This is a method for internal use only.
|
73 |
This is a method for internal use only.
|
| 66 |
It takes an optional \code{functionDef} argument to provide a
|
74 |
It takes an optional \code{functionDef} argument to provide a
|