| Line 1... |
Line 1... |
| 1 |
% File src/library/methods/man/setOldClass.Rd
|
1 |
% File src/library/methods/man/setOldClass.Rd
|
| 2 |
% Part of the R package, https://www.R-project.org
|
2 |
% Part of the R package, https://www.R-project.org
|
| 3 |
% Copyright 1995-2025, 2016 R Core Team
|
3 |
% Copyright 1995-2026 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{setOldClass}
|
6 |
\name{setOldClass}
|
| 7 |
\alias{setOldClass}
|
7 |
\alias{setOldClass}
|
| 8 |
\alias{.setOldIs}
|
8 |
\alias{.setOldIs}
|
| Line 16... |
Line 16... |
| 16 |
\alias{anova.glm.null-class}
|
16 |
\alias{anova.glm.null-class}
|
| 17 |
\alias{Date-class}
|
17 |
\alias{Date-class}
|
| 18 |
\alias{data.frame-class}
|
18 |
\alias{data.frame-class}
|
| 19 |
\alias{data.frameRowLabels-class}
|
19 |
\alias{data.frameRowLabels-class}
|
| 20 |
\alias{density-class}
|
20 |
\alias{density-class}
|
| - |
|
21 |
\alias{difftime-class}
|
| 21 |
\alias{dump.frames-class}
|
22 |
\alias{dump.frames-class}
|
| 22 |
\alias{factor-class}
|
23 |
\alias{factor-class}
|
| 23 |
\alias{formula-class}
|
24 |
\alias{formula-class}
|
| 24 |
\alias{glm-class}
|
25 |
\alias{glm-class}
|
| 25 |
\alias{glm.null-class}
|
26 |
\alias{glm.null-class}
|
| Line 91... |
Line 92... |
| 91 |
allowed, but not recommended in typical applications.}
|
92 |
allowed, but not recommended in typical applications.}
|
| 92 |
|
93 |
|
| 93 |
\code{prototype}:
|
94 |
\code{prototype}:
|
| 94 |
An optional object to use as the prototype. If the S3 class is
|
95 |
An optional object to use as the prototype. If the S3 class is
|
| 95 |
not to be \code{VIRTUAL} (the default), the use of \code{S4Class=} is
|
96 |
not to be \code{VIRTUAL} (the default), the use of \code{S4Class=} is
|
| 96 |
preferred.
|
97 |
preferred.
|
| 97 |
|
98 |
|
| 98 |
\code{where}:
|
99 |
\code{where}:
|
| 99 |
Where to store the class definitions. Should be the default (the
|
100 |
Where to store the class definitions. Should be the default (the
|
| 100 |
package namespace) for normal use in an application package.
|
101 |
package namespace) for normal use in an application package.
|
| 101 |
|
102 |
|
| 102 |
\code{test}: flag, if \code{TRUE}, arrange to test inheritance
|
103 |
\code{test}: flag, if \code{TRUE}, arrange to test inheritance
|
| 103 |
explicitly for each object, needed if the S3 class can have a
|
104 |
explicitly for each object, needed if the S3 class can have a
|
| 104 |
different set of class strings, with the same first string.
|
105 |
different set of class strings, with the same first string.
|
| 105 |
Such classes are inherently malformed, are rare, and should be avoided.
|
106 |
Such classes are inherently malformed, are rare, and should be avoided.
|
| 106 |
}
|
107 |
}
|
| Line 136... |
Line 137... |
| 136 |
\section{Pre-Defined Old Classes}{
|
137 |
\section{Pre-Defined Old Classes}{
|
| 137 |
|
138 |
|
| 138 |
Many of the widely used S3 classes in the standard R distribution
|
139 |
Many of the widely used S3 classes in the standard R distribution
|
| 139 |
come pre-defined for use with S4. These don't need to be explicitly
|
140 |
come pre-defined for use with S4. These don't need to be explicitly
|
| 140 |
declared in your package (although it does no harm to do so).
|
141 |
declared in your package (although it does no harm to do so).
|
| 141 |
|
142 |
|
| 142 |
The list \code{.OldClassesList} contains the old-style classes that
|
143 |
The list \code{.OldClassesList} contains the old-style classes that
|
| 143 |
are defined by the methods package. Each element of the list is a
|
144 |
are defined by the methods package. Each element of the list is a
|
| 144 |
character vector, with multiple strings if inheritance is included.
|
145 |
character vector, with multiple strings if inheritance is included.
|
| 145 |
Each element of the list was passed to \code{setOldClass} when
|
146 |
Each element of the list was passed to \code{setOldClass} when
|
| 146 |
creating the \pkg{methods} package; therefore, these classes can be used
|
147 |
creating the \pkg{methods} package; therefore, these classes can be used
|