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
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
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