The R Project SVN R

Rev

Rev 86513 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
86513 maechler 1
% File src/library/methods/man/MethodsList.Rd
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2024 R Core Team
4
% Distributed under GPL 2 or later
5
 
6
\name{loadMethod}
7
\title{Load an S4 Method}
8
%
9
\alias{loadMethod}
10
\alias{loadMethod-methods}
11
\alias{loadMethod,ANY-method}
12
\alias{loadMethod,MethodDefinition-method}
13
\alias{loadMethod,MethodWithNext-method}
14
\description{
15
  Internal generic function with methods; only for internal use of methods initialization.
16
}
17
\usage{
18
loadMethod(method, fname, envir)
19
}
20
\details{
21
      Called, if necessary, just before a call to \code{method} is
22
      dispatched in the frame \code{envir}.  The function exists so that
23
      methods can be defined for special classes of objects.  Usually
24
      the point is to assign or modify information in the frame
25
      environment to be used evaluation.  For example, the standard
26
      class \code{MethodDefinition} has a method that stores the target
27
      and defined signatures in the environment.  Class
28
      \code{MethodWithNext} has a method taking account of the
29
      mechanism for storing the method to be used in a call to
30
      \code{\link{callNextMethod}}.
31
 
32
      Any methods defined for \code{loadMethod} must return the function
33
      definition to be used for this call; typically, this is just the
34
      \code{method} argument.
35
}
36
\references{
88585 hornik 37
  \bibshow{R:Chambers:2008}
38
  (For the R version.)
86513 maechler 39
 
88585 hornik 40
  \bibshow{R:Chambers:1998}
41
  (For the original S4 version.)
86513 maechler 42
}
43
\keyword{internal}
44