The R Project SVN R

Rev

Rev 61433 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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