Re: [Rd] format.data.frame containing S4 class with format method

2010-05-17 Thread Prof Brian Ripley
On Sun, 16 May 2010, Daniel Murphy wrote: Hi again, I must be misunderstanding something fundamental about how an S4 class stored in a data.frame can be persuaded to print according to a desired format. Rather, you are misunderstanding something fundamental about the 'methods' package. It i

[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 m

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 dot