| Line 1... |
Line 1... |
| 1 |
% File src/library/methods/man/GenericFunctions.Rd
|
1 |
% File src/library/methods/man/GenericFunctions.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-2016 R Core Team
|
3 |
% Copyright 1995-2025 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{GenericFunctions}
|
6 |
\name{GenericFunctions}
|
| 7 |
\alias{GenericFunctions}
|
7 |
\alias{GenericFunctions}
|
| 8 |
\alias{isGeneric}
|
8 |
\alias{isGeneric}
|
| Line 58... |
Line 58... |
| 58 |
The behavior of \code{isGeneric} and \code{\link{getGeneric}} for
|
58 |
The behavior of \code{isGeneric} and \code{\link{getGeneric}} for
|
| 59 |
primitive functions is slightly different. These functions don't
|
59 |
primitive functions is slightly different. These functions don't
|
| 60 |
exist as formal generic function objects (for efficiency and
|
60 |
exist as formal generic function objects (for efficiency and
|
| 61 |
historical reasons), regardless of whether methods have been
|
61 |
historical reasons), regardless of whether methods have been
|
| 62 |
defined for them. For a primitive function, \code{isGeneric}
|
62 |
defined for them. For a primitive function, \code{isGeneric}
|
| 63 |
tests whether non-default methods have been defined, whereas
|
63 |
tests whether methods have been defined, whereas
|
| 64 |
\code{\link{getGeneric}} returns what the formal generic function
|
64 |
\code{\link{getGeneric}} returns what the formal generic function
|
| 65 |
object would be, even if no methods have been defined.
|
65 |
object would be, even if no methods have been defined.
|
| 66 |
}
|
66 |
}
|
| 67 |
|
67 |
|
| 68 |
\item{\code{removeGeneric}, \code{removeMethods}:}{
|
68 |
\item{\code{removeGeneric}, \code{removeMethods}:}{
|