| Line 25... |
Line 25... |
| 25 |
definition of the class of \code{object}.}
|
25 |
definition of the class of \code{object}.}
|
| 26 |
}
|
26 |
}
|
| 27 |
\details{
|
27 |
\details{
|
| 28 |
These operators support the formal classes of package \pkg{methods},
|
28 |
These operators support the formal classes of package \pkg{methods},
|
| 29 |
and are enabled only when package \pkg{methods} is loaded (as per
|
29 |
and are enabled only when package \pkg{methods} is loaded (as per
|
| 30 |
default). See \code{\link{slot}} for further details.
|
30 |
default). See \code{\link{slot}} for further details, in particular
|
| - |
|
31 |
for the differences between \code{slot()} and the \code{@} operator.
|
| 31 |
|
32 |
|
| 32 |
It is checked that \code{object} is an S4 object (see
|
33 |
It is checked that \code{object} is an S4 object (see
|
| 33 |
\code{\link{isS4}}), and it is an error to attempt to use \code{@} on
|
34 |
\code{\link{isS4}}), and it is an error to attempt to use \code{@} on
|
| 34 |
any other object. (There is an exception for name \code{.Data} for
|
35 |
any other object. (There is an exception for name \code{.Data} for
|
| 35 |
internal use only.) The replacement operator checks that the slot
|
36 |
internal use only.) The replacement operator checks that the slot
|