Re: [Rd] difficulties with setMethod([ and ...

2010-05-18 Thread Martin Maechler
Tony Plate tpl...@acm.org on Mon, 17 May 2010 20:51:12 -0600 writes: Jim, yes, I have dealt with that particular challenge that list(...) throws an error for a call like f(x,,,) where the empty args match to a ... formal argument. Here's some fragments of code that I used

Re: [Rd] difficulties with setMethod([ and ...

2010-05-18 Thread Jim Bullard
On Tue, 18 May 2010 10:22:03 +0200, Martin Maechler maech...@stat.math.ethz.ch wrote: Tony Plate tpl...@acm.org on Mon, 17 May 2010 20:51:12 -0600 writes: Jim, yes, I have dealt with that particular challenge that list(...) throws an error for a call like f(x,,,) where the

[Rd] difficulties with setMethod([ and ...

2010-05-17 Thread James Bullard
Apologies if I am not understanding something about how things are being handled when using S4 methods, but I have been unable to find an answer to my problem for some time now. Briefly, I am associating the generic '[' with a class which I wrote (here: myExample). The underlying back-end allows

Re: [Rd] difficulties with setMethod([ and ...

2010-05-17 Thread Tony Plate
Jim, yes, I have dealt with that particular challenge that list(...) throws an error for a call like f(x,,,) where the empty args match to a ... formal argument. Here's some fragments of code that I used to cope with this: # to find the empty anon args, must work with the unevaluated