| 44922 |
ripley |
1 |
% File src/library/methods/man/methods-defunct.Rd
|
| 68948 |
ripley |
2 |
% Part of the R package, https://www.R-project.org
|
| 86513 |
maechler |
3 |
% Copyright 1995-2024 R Core Team
|
| 44805 |
jmc |
4 |
% Distributed under GPL 2 or later
|
|
|
5 |
|
| 44922 |
ripley |
6 |
\name{methods-defunct}
|
| 86513 |
maechler |
7 |
\title{Defunct Functions in Package \pkg{methods}}
|
| 56186 |
murdoch |
8 |
\alias{methods-defunct}
|
| 44805 |
jmc |
9 |
\alias{getAllMethods}
|
|
|
10 |
\alias{mlistMetaName}
|
| 44920 |
ripley |
11 |
\alias{removeMethodsObject}
|
| 44922 |
ripley |
12 |
\alias{getAccess}
|
|
|
13 |
\alias{getClassName}
|
|
|
14 |
\alias{getClassPackage}
|
|
|
15 |
\alias{getExtends}
|
|
|
16 |
\alias{getProperties}
|
|
|
17 |
\alias{getPrototype}
|
|
|
18 |
\alias{getSubclasses}
|
|
|
19 |
\alias{getVirtual}
|
| 44925 |
ripley |
20 |
\alias{seemsS4Object}
|
| 46616 |
ripley |
21 |
\alias{allGenerics}
|
| 49856 |
ripley |
22 |
\alias{trySilent}
|
| 60851 |
ripley |
23 |
\alias{traceOn}
|
|
|
24 |
\alias{traceOff}
|
| 86513 |
maechler |
25 |
%--------------- former \code{MethodsList} Objects ------------------------------
|
|
|
26 |
% \code{MethodsList-class}: ~~~~~~~~~~~
|
|
|
27 |
\alias{MethodsList-class}
|
|
|
28 |
\alias{body<-,MethodDefinition-method}
|
|
|
29 |
%-----
|
|
|
30 |
\alias{listFromMlist}% only used in listFromMlist()
|
|
|
31 |
\alias{linearizeMlist}% only used in showMlist()
|
|
|
32 |
% finalDefaultMethod() [somewhat important]:
|
|
|
33 |
\alias{finalDefaultMethod}
|
|
|
34 |
%% were deprecated since R 3.2.0:
|
|
|
35 |
\alias{MethodsList}
|
|
|
36 |
\alias{makeMethodsList}
|
|
|
37 |
\alias{SignatureMethod}
|
|
|
38 |
\alias{insertMethod}
|
|
|
39 |
\alias{inheritedSubMethodLists}
|
|
|
40 |
\alias{showMlist}
|
|
|
41 |
\alias{print.MethodsList}
|
|
|
42 |
\alias{emptyMethodsList}
|
|
|
43 |
\alias{insertMethodInEmptyList}
|
|
|
44 |
\alias{mergeMethods}
|
|
|
45 |
\alias{MethodsListSelect}
|
|
|
46 |
% already removed:
|
|
|
47 |
% \alias{linearizeMlist}
|
|
|
48 |
% \alias{listFromMlist}
|
|
|
49 |
% \alias{showMlist}
|
|
|
50 |
|
|
|
51 |
%--------------------------- former {MethodsList} Objects -----------------------
|
| 44805 |
jmc |
52 |
\description{
|
| 44922 |
ripley |
53 |
Defunct functions in package \pkg{methods}.
|
| 44805 |
jmc |
54 |
}
|
|
|
55 |
\usage{
|
| 78220 |
maechler |
56 |
% Defunct in 2.8.0 ; removed for 4.0.0
|
| 44922 |
ripley |
57 |
getAccess(ClassDef)
|
|
|
58 |
getClassName(ClassDef)
|
|
|
59 |
getClassPackage(ClassDef)
|
|
|
60 |
getExtends(ClassDef)
|
|
|
61 |
getProperties(ClassDef)
|
|
|
62 |
getPrototype(ClassDef)
|
|
|
63 |
getSubclasses(ClassDef)
|
|
|
64 |
getVirtual(ClassDef)
|
|
|
65 |
|
| 44805 |
jmc |
66 |
getAllMethods(f, fdef, where)
|
|
|
67 |
mlistMetaName (name, package)
|
| 44920 |
ripley |
68 |
removeMethodsObject(f, where)
|
| 44924 |
ripley |
69 |
|
|
|
70 |
seemsS4Object(object)
|
| 46616 |
ripley |
71 |
|
| 78220 |
maechler |
72 |
% Defunct in 2.9.0; removed for 4.0.0
|
| 46616 |
ripley |
73 |
allGenerics()
|
| 49856 |
ripley |
74 |
|
|
|
75 |
% Removed in 2.11.0
|
|
|
76 |
trySilent(expr)
|
| 60851 |
ripley |
77 |
|
| 78220 |
maechler |
78 |
% Defunct in 3.0.0; removed for 4.0.0
|
| 60851 |
ripley |
79 |
traceOn(what, tracer=browseAll, exit=NULL)
|
|
|
80 |
traceOff(what)
|
| 44805 |
jmc |
81 |
}
|
| 44922 |
ripley |
82 |
\details{
|
|
|
83 |
The first block of functions should be replaced by direct access to
|
|
|
84 |
the slots, or by use of higher-level alternatives.
|
| 44805 |
jmc |
85 |
|
| 44922 |
ripley |
86 |
The functions and corresponding slots are:
|
|
|
87 |
\tabular{ll}{
|
|
|
88 |
\code{getAccess} \tab \code{"access"} \cr
|
|
|
89 |
\code{getClassName} \tab \code{"className"} \cr
|
|
|
90 |
\code{getClassPackage} \tab \code{"package"} \cr
|
|
|
91 |
\code{getExtends} \tab \code{"contains"} \cr
|
|
|
92 |
\code{getProperties} \tab \code{"slots"} \cr
|
|
|
93 |
\code{getPrototype} \tab \code{"prototype"} \cr
|
|
|
94 |
\code{getSubclasses} \tab \code{"subclasses"} \cr
|
|
|
95 |
\code{getVirtual} \tab \code{"virtual"}
|
|
|
96 |
}
|
| 44805 |
jmc |
97 |
|
| 44922 |
ripley |
98 |
\code{getAllMethods} replicated the behavior of
|
|
|
99 |
\code{\link{getMethods}}, which should be called instead to obtain
|
|
|
100 |
approximately the old behavior of \code{getAllMethods}. However, a
|
|
|
101 |
better substitution is to use \code{\link{findMethods}}, which
|
|
|
102 |
returns a simpler structure.
|
| 44805 |
jmc |
103 |
|
| 44922 |
ripley |
104 |
\code{mlistMetaName} was a utility to return the mangled
|
|
|
105 |
name for the object that stored the \code{MethodsList}
|
|
|
106 |
representation of the methods for a particular generic function,
|
|
|
107 |
typically in the environment of a package. These objects are no
|
|
|
108 |
longer used.
|
| 44805 |
jmc |
109 |
|
| 44922 |
ripley |
110 |
\code{removeMethodsObject} removed the metadata object containing
|
|
|
111 |
methods for \code{f}.
|
| 44924 |
ripley |
112 |
|
|
|
113 |
\code{seemsS4Object} was similar to \code{\link{isS4}} and superseded
|
|
|
114 |
by the introduction of the S4 bit in \R 2.4.0.
|
| 46616 |
ripley |
115 |
|
|
|
116 |
\code{allGenerics} is superseded by \code{\link{getGenerics}}.
|
| 61433 |
ripley |
117 |
|
| 49856 |
ripley |
118 |
\code{trySilent(ex)} was a deprecated equivalent of \code{\link{try}(e,
|
|
|
119 |
silent=TRUE)}; in \R programming it is typically more efficient and
|
|
|
120 |
flexible to work with something like \code{\link{tryCatch}(ex,
|
|
|
121 |
error = function(e) e)} instead.
|
| 61433 |
ripley |
122 |
|
| 60851 |
ripley |
123 |
The functions \code{traceOn} and \code{traceOff} have been replaced by
|
|
|
124 |
extended versions of the functions \code{\link{trace}} and
|
|
|
125 |
\code{\link{untrace}}.
|
| 44805 |
jmc |
126 |
}
|
|
|
127 |
|
|
|
128 |
\seealso{
|
| 44922 |
ripley |
129 |
\code{\link{Defunct}}
|
| 44805 |
jmc |
130 |
}
|
|
|
131 |
\keyword{internal}
|