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))
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()
2 matches
Mail list logo