| Line 68... |
Line 68... |
| 68 |
supplied these modify the call to the next method.
|
68 |
supplied these modify the call to the next method.
|
| 69 |
|
69 |
|
| 70 |
\code{NextMethod} should not be called except in methods called by
|
70 |
\code{NextMethod} should not be called except in methods called by
|
| 71 |
\code{UseMethod} or from internal generics (see
|
71 |
\code{UseMethod} or from internal generics (see
|
| 72 |
\link{InternalGenerics}). In particular it will not work inside
|
72 |
\link{InternalGenerics}). In particular it will not work inside
|
| 73 |
anonymous calling functions (e.g. \code{get("print.ts")(AirPassengers)}).
|
73 |
anonymous calling functions (e.g., \code{get("print.ts")(AirPassengers)}).
|
| 74 |
|
74 |
|
| 75 |
Namespaces can register methods for generic functions. To support
|
75 |
Namespaces can register methods for generic functions. To support
|
| 76 |
this, \code{UseMethod} and \code{NextMethod} search for methods in
|
76 |
this, \code{UseMethod} and \code{NextMethod} search for methods in
|
| 77 |
two places: first in the environment in which the generic function
|
77 |
two places: first in the environment in which the generic function
|
| 78 |
is called, and then in the registration data base for the
|
78 |
is called, and then in the registration data base for the
|