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!

JF

 

 


	[[alternative HTML version deleted]]

