[R] setMethod does not work in Window 7??

From: Fang, Jianwen <jwfang_at_ku.edu>
Date: Thu, 03 Jun 2010 16:05:58 -0500

I am developing a S4 class but have had trouble to make setMethod work in Window 7. I tested an example found in the setMethod manual:  

 > require(graphics)

> setMethod("plot", signature(x="track", y="missing"),

+ function(x, y, ...) plot(slot(x, "x"), slot(x, "y"), ...)

+ )  

It gave me:  

Error in setMethod("plot", signature(x = "track", y = "missing"), function(x, :

  unused argument(s) (function(x, y, ...) plot(slot(x, "x"), slot(x, "y"), ...))  

It works perfectly fine in Linux. Does anybody know why?  

Thanks in advance!


        [[alternative HTML version deleted]]

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 Thu 03 Jun 2010 - 21:10:13 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 Fri 04 Jun 2010 - 14:00:27 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