Re: [Rd] Handling masked methods

2009-07-17 Thread Martin Maechler
> "GA" == Gad Abraham > on Fri, 17 Jul 2009 10:29:29 +1000 writes: GA> On 16/7/09 12:18 PM, Duncan Murdoch wrote: >> Gad Abraham wrote: >>> Hi, >>> >>> Say I have two packages, test1 and test2, that both define the generic >>> method train (identical definitio

Re: [Rd] Handling masked methods

2009-07-16 Thread Gad Abraham
On 16/7/09 12:18 PM, Duncan Murdoch wrote: Gad Abraham wrote: Hi, Say I have two packages, test1 and test2, that both define the generic method train (identical definition), and each has a specific train method for a different S4 object (foo and bar, resp.) I want to be able to call train(foo,

Re: [Rd] Handling masked methods

2009-07-15 Thread Duncan Murdoch
Gad Abraham wrote: Hi, Say I have two packages, test1 and test2, that both define the generic method train (identical definition), and each has a specific train method for a different S4 object (foo and bar, resp.) I want to be able to call train(foo, x, y) and train(bar, x, y), which doesn

[Rd] Handling masked methods

2009-07-15 Thread Gad Abraham
Hi, Say I have two packages, test1 and test2, that both define the generic method train (identical definition), and each has a specific train method for a different S4 object (foo and bar, resp.) I want to be able to call train(foo, x, y) and train(bar, x, y), which doesn't work since test2