The R Project SVN R

Rev

Rev 66580 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 66580 Rev 67997
Line 1... Line 1...
1
% File src/library/methods/man/showMethods.Rd
1
% File src/library/methods/man/showMethods.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2014 R Core Team
3
% Copyright 1995-2015 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{showMethods}
6
\name{showMethods}
7
\alias{showMethods}
7
\alias{showMethods}
-
 
8
\alias{.S4methods}
8
\title{Show all the methods for the specified function(s)}
9
\title{Show all the methods for the specified function(s) or class}
9
\description{
10
\description{
10
  Show a summary of the methods for one or more generic functions,
11
  Show a summary of the methods for one or more generic functions,
11
  possibly restricted to those involving specified classes.
12
  possibly restricted to those involving specified classes.
12
}
13
}
13
\usage{
14
\usage{
14
showMethods(f = character(), where = topenv(parent.frame()),
15
showMethods(f = character(), where = topenv(parent.frame()),
15
            classes = NULL, includeDefs = FALSE,
16
            classes = NULL, includeDefs = FALSE,
16
            inherited = !includeDefs,
17
            inherited = !includeDefs,
17
            showEmpty, printTo = stdout(), fdef)
18
            showEmpty, printTo = stdout(), fdef)
-
 
19
.S4methods(generic.function, class)
18
}
20
}
19
\arguments{
21
\arguments{
20
  \item{f}{one or more function names.  If omitted, all functions
22
  \item{f}{one or more function names.  If omitted, all functions
21
    will be shown that match the other arguments.
23
    will be shown that match the other arguments.
22
 
24
 
Line 50... Line 52...
50
  \item{printTo}{The connection on which the information will be
52
  \item{printTo}{The connection on which the information will be
51
    shown; by default, on standard output.}
53
    shown; by default, on standard output.}
52
  \item{fdef}{Optionally, the generic function definition to use; if
54
  \item{fdef}{Optionally, the generic function definition to use; if
53
    missing, one is found, looking in \code{where} if that is specified.
55
    missing, one is found, looking in \code{where} if that is specified.
54
    See also comment in \sQuote{Details}.}
56
    See also comment in \sQuote{Details}.}
-
 
57
  \item{generic.function, class}{See \code{methods}.}
55
}
58
}
56
\details{
59
\details{
-
 
60
  See \code{methods} for a description of \code{.S4methods}.
-
 
61
 
57
  The name and package of the generic are followed by the list of
62
  The name and package of the generic are followed by the list of
58
  signatures for which methods are currently defined, according to the
63
  signatures for which methods are currently defined, according to the
59
  criteria determined by the various arguments.  Note that the package
64
  criteria determined by the various arguments.  Note that the package
60
  refers to the source of the generic function.  Individual methods
65
  refers to the source of the generic function.  Individual methods
61
  for that generic can come from other packages as well.
66
  for that generic can come from other packages as well.
Line 83... Line 88...
83
\seealso{
88
\seealso{
84
  \code{\link{setMethod}}, and \code{\link{GenericFunctions}}
89
  \code{\link{setMethod}}, and \code{\link{GenericFunctions}}
85
  for other tools involving methods;
90
  for other tools involving methods;
86
  \code{\link{selectMethod}} will show you the method dispatched for a
91
  \code{\link{selectMethod}} will show you the method dispatched for a
87
  particular function and signature of classes for the arguments.
92
  particular function and signature of classes for the arguments.
-
 
93
 
-
 
94
  \code{\link{methods}} provides method discovery tools for light-weight
-
 
95
  interactive use.
88
}
96
}
89
\examples{
97
\examples{
90
require(graphics)
98
require(graphics)
91
\dontshow{
99
\dontshow{
92
 setClass("track",
100
 setClass("track",