Rev 44920 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/methods-deprecated.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{methods-deprecated}\alias{methods-deprecated}\alias{getAllMethods}\alias{mlistMetaName}%------ NOTE: ../R/Deprecated.R must be synchronized with this!\title{Deprecated Functions in Methods package}%------ PLEASE: put \alias{.} here for EACH !\description{These functions are provided for compatibility with older versions of\R only, and may be defunct as soon as the next release.}\usage{getAllMethods(f, fdef, where)mlistMetaName (name, package)}\section{Summary of Functions}{\describe{\item{\code{getAllMethods}:}{This function replicates the behavior of \code{\link{getMethods}}, which should be called instead to obtain approximately the old behavior of \code{getAllMethods}. However, a better substitution is to use \code{\link{findMethods}}, which returns a simpler structure.(The following is the original description, which has not been accurate since approximately version 2.5.0 of R.A generic function (with methods) representing the merge of allthe methods defined for this generic starting from environment\code{where}, including all parent environments. By default,uses the global environment (and therefore all packages on thesearch list). This function exists largelyto re-compute the full set of methods when a change to theavailable methods occurs. Since all such recomputations aresupposed to be automatic, direct calls to \code{getAllMethods}should not be needed.If the generic \code{f} has a group generic, methods for thisgroup generic (and further generations of group generics, if any)are also merged.The merging rule is as follows: each generic is merged acrosspackages, and the group generics are then merged, finally addingthe directly defined methods of \code{f}.The effect of the merging rule is that any method directly definedfor \code{f} on any included package overrides a method for thesame signature defined for the group generic; similarly for thegroup generic and its group, if any, etc.For \code{f} or for a specific group generic, methods override inthe order of the packages being searched. A method for aparticular signature on a particular package overrides any methodsfor the same signature on packages later on in the list ofpackages being searched.The slot \code{"allMethods"} of the merged methods list is set toa copy of the methods slot; this is the slot where inheritedmethods are stored.)}\item{\code{mlistMetaName}:}{Utility to return the mangledname for the object that stored the \code{MethodsList} representation of the methods for a particular generic function, typically in the environment of a package.These objects are no longer used, and will likely not be generated starting in version 2.8.0 of R.}}}\details{The original help page for these functions is oftenavailable at \code{help("oldName-deprecated")} (note the quotes).Functions in packages other than the methods package are listed in\code{help("pkg-deprecated")}.}\seealso{\code{\link{Deprecated}}}\keyword{internal}