[Rd] callNextMethod fails with "$" generic

From: Vitalie S. <spinuvit.list_at_gmail.com>
Date: Wed, 10 Nov 2010 13:49:19 +0100

Dear Developers,

callNextMethods does not work with "$"

setClass("mylist", contains = "list"):

          signature(x = "mylist"),
          function (x, name){

tl <- new("mylist")
tl[["x"]] <- 343

If I use callNextMethod(x=x, name=name)

this error is issued:

Error in function (classes, fdef, mtable) :   unable to find an inherited method for function "addNextMethod", for signature "function"

It must be something "$" specific. If the above is an expected behavior , how should I call next method for "$" generic?

My info:
R version 2.12.0 Patched (2010-11-01 r53513) Platform: i386-pc-mingw32/i386 (32-bit)

Same behavior for official R 2.12.0.


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 10 Nov 2010 - 12:57:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 11 Nov 2010 - 02:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive