Hi all,
For reasons I can't explain, the code I posted worked in my session, but didn't
work when I started a fresh one. standardGeneric() seems to get confused
by defaults for missing arguments. It looks for a "missing" method with
this code:
relist <- function(flesh, skeleton=attr(flesh, "skeleton"))
{
standardGeneric("relist")
}
I uploaded yet another new version that adds a wrapper that seems to
resolve standardGeneric()'s confusion like this:
relist <- function(flesh, skeleton=attr(flesh, "skeleton"))
{
# need a wrapper, since standardGeneric gets confused by
# default arguments.
f <- function(flesh, skeleton) standardGeneric("relist")
f(flesh, skeleton)
}
Cheers,
Andrew
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel