| Line 26... |
Line 26... |
| 26 |
isGroup(f, where, fdef)
|
26 |
isGroup(f, where, fdef)
|
| 27 |
removeGeneric(f, where)
|
27 |
removeGeneric(f, where)
|
| 28 |
standardGeneric(f)
|
28 |
standardGeneric(f)
|
| 29 |
|
29 |
|
| 30 |
dumpMethod(f, signature, file, where, def)
|
30 |
dumpMethod(f, signature, file, where, def)
|
| 31 |
findFunction(f, generic=TRUE)
|
31 |
findFunction(f, generic = TRUE, where = topenv(parent.frame()))
|
| 32 |
dumpMethods(f, file, signature, methods, where)
|
32 |
dumpMethods(f, file, signature, methods, where)
|
| 33 |
signature(\dots)
|
33 |
signature(\dots)
|
| 34 |
|
34 |
|
| 35 |
removeMethods(f, where)
|
35 |
removeMethods(f, where = topenv(parent.frame()), all = TRUE)
|
| 36 |
setReplaceMethod(f, \dots)
|
36 |
setReplaceMethod(f, \dots, where = topenv(parent.frame()))
|
| 37 |
|
37 |
|
| 38 |
getGenerics(where, searchForm = FALSE)
|
38 |
getGenerics(where, searchForm = FALSE)
|
| 39 |
allGenerics(where, searchForm = FALSE)
|
39 |
allGenerics(where, searchForm = FALSE)
|
| 40 |
callGeneric(\dots)
|
40 |
callGeneric(\dots)
|
| 41 |
}
|
41 |
}
|
| Line 52... |
Line 52... |
| 52 |
The behavior of \code{isGeneric} and \code{\link{getGeneric}} for
|
52 |
The behavior of \code{isGeneric} and \code{\link{getGeneric}} for
|
| 53 |
primitive functions is slightly different. These functions don't
|
53 |
primitive functions is slightly different. These functions don't
|
| 54 |
exist as formal function objects (for efficiency and historical
|
54 |
exist as formal function objects (for efficiency and historical
|
| 55 |
reasons), regardless of whether methods have been defined for
|
55 |
reasons), regardless of whether methods have been defined for
|
| 56 |
them. A call to \code{isGeneric} tells you whether methods have
|
56 |
them. A call to \code{isGeneric} tells you whether methods have
|
| 57 |
been defined for this primitive function, anywhere in the
|
57 |
been defined for this primitive function, anywhere in the current
|
| 58 |
current search list, or in the specified position \code{where}. In contrast,
|
58 |
search list, or in the specified position \code{where}. In
|
| 59 |
a call to \code{\link{getGeneric}} will return what the generic
|
59 |
contrast, a call to \code{\link{getGeneric}} will return what the
|
| 60 |
for that function would be, even if no methods have been currently
|
60 |
generic for that function would be, even if no methods have been
|
| 61 |
defined for it.
|
61 |
currently defined for it.
|
| 62 |
}
|
62 |
}
|
| 63 |
|
63 |
|
| 64 |
\item{\code{removeGeneric}, \code{removeMethods}:}{
|
64 |
\item{\code{removeGeneric}, \code{removeMethods}:}{
|
| 65 |
Remove all the methods for the generic function of this
|
65 |
Remove all the methods for the generic function of this
|
| 66 |
name. In addition, \code{removeGeneric} removes the function
|
66 |
name. In addition, \code{removeGeneric} removes the function
|