Re: [Rd] callNextMethod fails with "$" generic

2010-11-11 Thread Vitalie S.
John Chambers writes: > The problem here is that the primitive for `$` does not use standard R > evaluation on its second argument, so when it is selected as the next method > the call is effectively x$name regardless of the original call. > > If possible, I would avoid such cascaded calls of met

Re: [Rd] callNextMethod fails with "$" generic

2010-11-10 Thread John Chambers
The problem here is that the primitive for `$` does not use standard R evaluation on its second argument, so when it is selected as the next method the call is effectively x$name regardless of the original call. If possible, I would avoid such cascaded calls of methods for `$`, precisely becau

[Rd] callNextMethod fails with "$" generic

2010-11-10 Thread Vitalie S.
Dear Developers, callNextMethods does not work with "$" setClass("mylist", contains = "list"): setMethod("$", signature(x = "mylist"), function (x, name){ cat("here:\n") callNextMethod() }) tl <- new("mylist") tl[["x"]] <- 343 tl$x #her