isS3stdGen
Check if a Function Acts as an S3 GenericDetermines whether f
acts as a standard S3-style generic function.
isS3stdGeneric(f)
f | a function object |
A closure is considered a standard S3 generic if the first expression in its body calls UseMethod
. Functions which perform operations before calling UseMethod
will not be considered “standard” S3 generics.
If f
is currently being traced, i.e., inheriting from class "traceable"
, the definition of the original untraced version of the function is used instead.
If f
is an S3 generic, a logical containing TRUE
with the name of the S3 generic (the string passed to UseMethod
). Otherwise, FALSE
(unnamed).
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.