Displaying 1 result from an estimated 1 matches for "zdots".
Did you mean:
dots
2010 Jun 09
0
Argument mismatches in S3 generic and method
...t=foo)
Error in zNoDots(fooObject = foo) : unused argument(s) (fooObject =
foo)
If there is an ellipsis in the function definition
the call can tag the argument by the name given in
the method, but not by the generic's name for the
argument (and an untagged argument works here also):
> zDots <- function(x,...) UseMethod("zDots")
> zDots.foo <- function(fooObject,...) { cat("zDots.foo: fooObject=")
; dput(fooObject) }
> zDots(foo)
zDots.foo: fooObject=structure(1:4, class = "foo")
> zDots(x=foo)
zDots.foo: fooObject=Error in .Call(&...