Rev 86513 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/MethodsList.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2024 R Core Team% Distributed under GPL 2 or later\name{loadMethod}\title{Load an S4 Method}%\alias{loadMethod}\alias{loadMethod-methods}\alias{loadMethod,ANY-method}\alias{loadMethod,MethodDefinition-method}\alias{loadMethod,MethodWithNext-method}\description{Internal generic function with methods; only for internal use of methods initialization.}\usage{loadMethod(method, fname, envir)}\details{Called, if necessary, just before a call to \code{method} isdispatched in the frame \code{envir}. The function exists so thatmethods can be defined for special classes of objects. Usuallythe point is to assign or modify information in the frameenvironment to be used evaluation. For example, the standardclass \code{MethodDefinition} has a method that stores the targetand defined signatures in the environment. Class\code{MethodWithNext} has a method taking account of themechanism for storing the method to be used in a call to\code{\link{callNextMethod}}.Any methods defined for \code{loadMethod} must return the functiondefinition to be used for this call; typically, this is just the\code{method} argument.}\references{\bibshow{R:Chambers:2008}(For the R version.)\bibshow{R:Chambers:1998}(For the original S4 version.)}\keyword{internal}