[R] S3 generics need identical signature?

2010-06-21 Thread Gábor Csárdi
Dear all, Writing R Extensions explicitly says that A method must have all the arguments of the generic, including ... if the generic does. A method must have arguments in exactly the same order as the generic. If the generic specifies defaults, all methods should use the same

Re: [R] S3 generics need identical signature?

2010-06-21 Thread Duncan Murdoch
On 21/06/2010 9:31 AM, Gábor Csárdi wrote: Dear all, Writing R Extensions explicitly says that A method must have all the arguments of the generic, including ... if the generic does. A method must have arguments in exactly the same order as the generic. If the generic specifies

Re: [R] S3 generics need identical signature?

2010-06-21 Thread Gábor Csárdi
On Mon, Jun 21, 2010 at 4:17 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: [...] The requirement is that the methods need to have signatures that contain all the arguments of the generic.  If the generic includes ..., then the methods can add other arguments, too.  So with the generic for

Re: [R] S3 generics need identical signature?

2010-06-21 Thread Henrik Bengtsson
On Mon, Jun 21, 2010 at 4:23 PM, Gábor Csárdi csa...@rmki.kfki.hu wrote: On Mon, Jun 21, 2010 at 4:17 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: [...] The requirement is that the methods need to have signatures that contain all the arguments of the generic.  If the generic includes

Re: [R] S3 generics need identical signature?

2010-06-21 Thread Thomas Lumley
On Mon, 21 Jun 2010, Henrik Bengtsson wrote: On Mon, Jun 21, 2010 at 4:23 PM, Gábor Csárdi csa...@rmki.kfki.hu wrote: On Mon, Jun 21, 2010 at 4:17 PM, Duncan Murdoch murdoch.dun...@gmail.com wrote: [...] The requirement is that the methods need to have signatures that contain all the