| Line 1... |
Line 1... |
| 1 |
% File src/library/methods/man/findMethods.Rd
|
1 |
% File src/library/methods/man/findMethods.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 2008-2019 R Core Team
|
3 |
% Copyright 2008-2024 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{findMethods}
|
6 |
\name{findMethods}
|
| 7 |
\title{Description of the Methods Defined for a Generic Function}
|
7 |
\title{Description of the Methods Defined for a Generic Function}
|
| 8 |
\alias{findMethods}
|
8 |
\alias{findMethods}
|
| Line 37... |
Line 37... |
| 37 |
The function \code{hasMethods} returns \code{TRUE} or \code{FALSE}
|
37 |
The function \code{hasMethods} returns \code{TRUE} or \code{FALSE}
|
| 38 |
according to whether there is a non-empty table of methods for
|
38 |
according to whether there is a non-empty table of methods for
|
| 39 |
function \code{f} in the environment or search position \code{where}
|
39 |
function \code{f} in the environment or search position \code{where}
|
| 40 |
(or for the generic function generally if \code{where} is missing).
|
40 |
(or for the generic function generally if \code{where} is missing).
|
| 41 |
|
41 |
|
| 42 |
The defunct function \code{getMethods} is an older alternative to
|
42 |
The deprecated function \code{getMethods} (defunct for default \code{table=FALSE})
|
| - |
|
43 |
is an older alternative to
|
| 43 |
\code{findMethods} , returning information in the form of an object of
|
44 |
\code{findMethods} , returning information in the form of an object of
|
| 44 |
class \code{MethodsList}, previously used for method dispatch. This
|
45 |
class \code{MethodsList}, previously used for method dispatch. This
|
| 45 |
class of objects is deprecated generally and will disappear in a
|
46 |
class of objects is deprecated generally and will disappear in a
|
| 46 |
future version of R.
|
47 |
future version of R.
|
| 47 |
}
|
48 |
}
|
| Line 52... |
Line 53... |
| 52 |
findMethodSignatures(..., target = TRUE, methods = )
|
53 |
findMethodSignatures(..., target = TRUE, methods = )
|
| 53 |
|
54 |
|
| 54 |
hasMethods(f, where, package)
|
55 |
hasMethods(f, where, package)
|
| 55 |
|
56 |
|
| 56 |
## Deprecated in 2010 and defunct in 2015 for 'table = FALSE':
|
57 |
## Deprecated in 2010 and defunct in 2015 for 'table = FALSE':
|
| 57 |
getMethods(f, where, table = FALSE)
|
58 |
getMethods(f, where, table = FALSE) # deprecated -> use getMethodsForDispatch()
|
| 58 |
}
|
59 |
}
|
| 59 |
\arguments{
|
60 |
\arguments{
|
| 60 |
\item{f}{A generic function or the character-string name of one.}
|
61 |
\item{f}{A generic function or the character-string name of one.}
|
| 61 |
\item{where}{Optionally, an environment or position on the search list
|
62 |
\item{where}{Optionally, an environment or position on the search list
|
| 62 |
to look for methods metadata.
|
63 |
to look for methods metadata.
|