The R Project SVN R

Rev

Rev 73574 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73574 Rev 79185
Line 1... Line 1...
1
% File src/library/utils/man/isS3stdGeneric.Rd
1
% File src/library/utils/man/isS3stdGeneric.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2016 R Core Team
3
% Copyright 1995-2020 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{isS3stdGeneric}
6
\name{isS3stdGeneric}
7
\alias{isS3stdGeneric}
7
\alias{isS3stdGeneric}
8
\title{Check if a Function Acts as an S3 Generic}
8
\title{Check if a Function Acts as an S3 Generic}
Line 12... Line 12...
12
}
12
}
13
\usage{
13
\usage{
14
isS3stdGeneric(f)
14
isS3stdGeneric(f)
15
}
15
}
16
\arguments{
16
\arguments{
17
  \item{f}{A function object}
17
  \item{f}{a function object}
18
}
18
}
19
\details{
19
\details{
20
  A closure is considered a standard S3 generic if the first expression
20
  A closure is considered a standard S3 generic if the first expression
21
  in its body calls \code{\link{UseMethod}}. Functions which perform
21
  in its body calls \code{\link{UseMethod}}. Functions which perform
22
  operations before calling \code{UseMethod} will not be considered
22
  operations before calling \code{UseMethod} will not be considered
23
  \dQuote{standard} S3 generics.
23
  \dQuote{standard} S3 generics.
-
 
24
 
-
 
25
  If \code{f} is currently being traced, i.e., inheriting from class
-
 
26
  \code{"traceable"}, the definition of the original untraced version of
-
 
27
  the function is used instead.
24
}
28
}
25
\value{
29
\value{
26
  If \code{f} is an S3 generic, a logical vector containing \code{TRUE}
30
  If \code{f} is an S3 generic, a logical containing \code{TRUE}
27
  with the name of the S3 generic (the string passed to
31
  with the name of the S3 generic (the string passed to
28
  \code{UseMethod}). Otherwise, \code{FALSE} (unnamed).
32
  \code{UseMethod}). Otherwise, \code{FALSE} (unnamed).
29
}
33
}
30
\keyword{utilities}
34
\keyword{utilities}