[R] callNextMethod with dots argument

2013-09-19 Thread Kiên Kiêu
Hi, I met a problem when invoking callNextMethod within a method associated with a generic function taking ... as an argument. Here is the code setClass(Aparent,representation(x=numeric,y=numeric)) setClass(Achild,contains=Aparent) setGeneric(do,def=function(a,...) standardGeneric(do))

Re: [R] callNextMethod with dots argument

2013-09-19 Thread Simon Zehnder
Kien, if you want to add variables in a function definition that is predefined by a Generic and calls CallNextMethod you have to add the '…' argument as well. setMethod(do,signature(a=Achild), function(a,msg,...) { print(do Achild) callNextMethod()