Rev 49856 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/methods/man/methods-defunct.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2009 R Core Development Team% Distributed under GPL 2 or later\name{methods-defunct}\alias{methods-defunct}\alias{getAllMethods}\alias{mlistMetaName}\alias{removeMethodsObject}\alias{getAccess}\alias{getClassName}\alias{getClassPackage}\alias{getExtends}\alias{getProperties}\alias{getPrototype}\alias{getSubclasses}\alias{getVirtual}\alias{seemsS4Object}\alias{allGenerics}\alias{trySilent}\title{Defunct Functions in the Methods Package}\description{Defunct functions in package \pkg{methods}.}\usage{% Removed in 2.8.0getAccess(ClassDef)getClassName(ClassDef)getClassPackage(ClassDef)getExtends(ClassDef)getProperties(ClassDef)getPrototype(ClassDef)getSubclasses(ClassDef)getVirtual(ClassDef)getAllMethods(f, fdef, where)mlistMetaName (name, package)removeMethodsObject(f, where)seemsS4Object(object)% Removed in 2.9.0allGenerics()% Removed in 2.11.0trySilent(expr)}\details{The first block of functions should be replaced by direct access tothe slots, or by use of higher-level alternatives.The functions and corresponding slots are:\tabular{ll}{\code{getAccess} \tab \code{"access"} \cr\code{getClassName} \tab \code{"className"} \cr\code{getClassPackage} \tab \code{"package"} \cr\code{getExtends} \tab \code{"contains"} \cr\code{getProperties} \tab \code{"slots"} \cr\code{getPrototype} \tab \code{"prototype"} \cr\code{getSubclasses} \tab \code{"subclasses"} \cr\code{getVirtual} \tab \code{"virtual"}}\code{getAllMethods} replicated the behavior of\code{\link{getMethods}}, which should be called instead to obtainapproximately the old behavior of \code{getAllMethods}. However, abetter substitution is to use \code{\link{findMethods}}, whichreturns a simpler structure.\code{mlistMetaName} was a 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 nolonger used.\code{removeMethodsObject} removed the metadata object containingmethods for \code{f}.\code{seemsS4Object} was similar to \code{\link{isS4}} and supersededby the introduction of the S4 bit in \R 2.4.0.\code{allGenerics} is superseded by \code{\link{getGenerics}}.\code{trySilent(ex)} was a deprecated equivalent of \code{\link{try}(e,silent=TRUE)}; in \R programming it is typically more efficient andflexible to work with something like \code{\link{tryCatch}(ex,error = function(e) e)} instead.}\seealso{\code{\link{Defunct}}}\keyword{internal}