Re: [R] S4 : dumpMethod

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Wed, 19 Mar 2008 12:20:31 +0100

>>>>> "CG" == Christophe Genolini <cgenolin@u-paris10.fr>
>>>>> on Tue, 18 Mar 2008 20:55:09 +0100 writes:

    CG> Hi the list,
    CG> I almost finished the green book (chapter 7 and 8 on S4), this is 
    CG> probably one of my last question :-)
    CG> I hope you will not miss them to much !

    CG> Here is my today nighmare: I do not manage to use dumpMethod :

    CG> setClass("A",representation(a="numeric"))
    CG> setMethod("plot","A",function(x,y,...){cat("AAAAA\n")})
    CG> dumpMethod("plot","A",file="")
    CG> #setMethod("plot", "A",
    CG> #NULL
    CG> #)
    CG> #[1] ""


    CG> Anything wrong in my code?

No.

dumpMethod() has not been updated when the internal method definition (and storage) code has been changed. Consequently, it looks pretty broken to me, as well.

OTOH, I have never seen any need to use it, since I only work with *.R files which I write and comment and .. and never would want to replace with anything dumped...

But of course, it's still a bug that

     dumpMethod()
and dumpMethods()
are currently not working at all.
Do you want to submit a (legitimate (!)) bug report to R-bugs ?

Thank you for your reproducible example and subsequent questions!

Martin Maechler, ETH Zurich



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 19 Mar 2008 - 11:32:37 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 Wed 19 Mar 2008 - 12:30:22 GMT.

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

list of date sections of archive