The R Project SVN R

Rev

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

Rev 68948 Rev 71228
Line 1... Line 1...
1
% File src/library/methods/man/GenericFunctions.Rd
1
% File src/library/methods/man/GenericFunctions.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-2007 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{GenericFunctions}
6
\name{GenericFunctions}
7
\alias{GenericFunctions}
7
\alias{GenericFunctions}
8
\alias{isGeneric}
8
\alias{isGeneric}
Line 285... Line 285...
285
mustDie(standardGeneric("show"))  # a generic, but not called from its body
285
mustDie(standardGeneric("show"))  # a generic, but not called from its body
286
}
286
}
287
 
287
 
288
## method dumping ------------------------------------
288
## method dumping ------------------------------------
289
 
289
 
290
setClass("A", representation(a="numeric"))
290
setClass("A", slots = c(a="numeric"))
291
setMethod("plot", "A", function(x,y,...){ cat("A meth\n") })
291
setMethod("plot", "A", function(x,y,...){ cat("A meth\n") })
292
dumpMethod("plot","A", file="")
292
dumpMethod("plot","A", file="")
293
\dontrun{
293
\dontrun{
294
setMethod("plot", "A",
294
setMethod("plot", "A",
295
function (x, y, ...)
295
function (x, y, ...)