The R Project SVN R

Rev

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

Rev 30461 Rev 31672
Line 13... Line 13...
13
\usage{
13
\usage{
14
UseMethod(generic, object)
14
UseMethod(generic, object)
15
NextMethod(generic = NULL, object = NULL, \dots)
15
NextMethod(generic = NULL, object = NULL, \dots)
16
}
16
}
17
\arguments{
17
\arguments{
18
  \item{generic}{a character string naming a function.}
18
  \item{generic}{a character string naming a function. Required for
-
 
19
    \code{UseMethod}.}
19
  \item{object}{an object whose class will determine the method to be
20
  \item{object}{an object whose class will determine the method to be
20
    dispatched.  Defaults to the first argument of the enclosing function.}
21
    dispatched.  Defaults to the first argument of the enclosing function.}
21
  \item{\dots}{further arguments to be passed to the method.}
22
  \item{\dots}{further arguments to be passed to the method.}
22
}
23
}
23
\details{
24
\details{
Line 86... Line 87...
86
 
87
 
87
  The function \code{.isMethodsDispatchOn()} returns \code{TRUE} if
88
  The function \code{.isMethodsDispatchOn()} returns \code{TRUE} if
88
  the S4 method dispatch has been turned on in the evaluator. It is
89
  the S4 method dispatch has been turned on in the evaluator. It is
89
  meant for \R internal use only.
90
  meant for \R internal use only.
90
}
91
}
-
 
92
\section{Warning}{
-
 
93
  Prior to \R 2.1.0 \code{UseMethod} accepted a call with no arguments
-
 
94
  and tried to deduce the generic from the context.  This was
-
 
95
  undocumented on the help page.  It is allowed but
-
 
96
  \sQuote{strongly discouraged} in S-PLUS, and is no longer allowed in \R.
-
 
97
}
91
\seealso{
98
\seealso{
92
  \code{\link{methods}}, \code{\link[base]{class}}, \code{\link{getS3method}}
99
  \code{\link{methods}}, \code{\link[base]{class}}, \code{\link{getS3method}}
93
}
100
}
94
\references{
101
\references{
95
  Chambers, J. M. (1992)
102
  Chambers, J. M. (1992)