Displaying 1 result from an estimated 1 matches for "oporig".
Did you mean:
porig
2010 Sep 23
1
strange behaviour of callNextMethod in S4 methods
...for class OPSource:
setMethod("ncputVar",signature(nc="NetCDF",variable="ANY",object="OPSource"),
def=function(nc,variable,object)
{
att.put.nc(nc,variable,"srctype","NC_CHAR","OPSource")
att.put.nc(nc,variable,"oporig","NC_CHAR",object at oporig)
callNextMethod()
}
)
A call to ncputVar with an OPSource object causes an error saying object
is not present.
But if the method definition is changed like this:
setMethod("ncputVar",signature(nc="NetCDF",variable="ANY"...