[Rd] Unexplained strange behaviour of callNextMethod in S4 methods

2010-10-04 Thread Harold Petithomme
od() } ) a = new("A",a=1) b = new("B",b="hello",a) f(a) f(b) This last command (f(b)) fails. But remove the 'valueClass="NULL"' setting in setGeneric or add argument x to the call to callNextMethod and it will be OK! Isn't it tricky?

[Rd] strange behaviour of callNextMethod in S4 methods

2010-09-23 Thread Harold PETITHOMME
ot;), def=function(nc,variable,object) { o = object att.put.nc(nc,variable,"srctype","NC_CHAR","OPSource") att.put.nc(nc,variable,"oporig","NC_CHAR",obj...@oporig) callNextMethod(nc,variable,o) } ) there is no more an error. Why does my "object"