Re: [R] Need Advice: Considering Converting a Package from S3 to S4 -- reprise

2009-08-13 Thread Terry Therneau
I read the list in digest form which sometimes makes me late to respond. Peter Dalgaard wrote: In all fairness, it should probably be noted that quite a few people swear BY S4 in addition to those who swear AT it. Lest I give the impression of only dislike -- the coxme package (major rewrite

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread Peter Dalgaard
Ben Bolker wrote: I can see that fortune("S4") is going to produce more than one possible response soon ... (is Achim Zeleis listening?) Ben In all fairness, it should probably be noted that quite a few people swear BY S4 in addition to those who swear AT it. -p Frank E Harrell J

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread Ben Bolker
I can see that fortune("S4") is going to produce more than one possible response soon ... (is Achim Zeleis listening?) Ben Frank E Harrell Jr wrote: > > spencerg wrote: >> Hi, Terry: >> >> Thanks for the comments. I too vastly prefer S3 to S4. Your > > Me too. My summary is t

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread Duncan Murdoch
On 8/11/2009 1:24 PM, spencerg wrote: Hi, Terry: Thanks for the comments. I too vastly prefer S3 to S4. Your comparison is based on much greater experience than mine. Could you please check the link you sent? I couldn't get it to work. It's a small typo, the correction

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread Frank E Harrell Jr
spencerg wrote: Hi, Terry: Thanks for the comments. I too vastly prefer S3 to S4. Your Me too. My summary is this: If you love computer science more than you value your own time, use S4. Frank Harrell comparison is based on much greater experience than mine. Could you please

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread spencerg
Hi, Terry: Thanks for the comments. I too vastly prefer S3 to S4. Your comparison is based on much greater experience than mine. Could you please check the link you sent? I couldn't get it to work. Thanks again. Spencer Terry Therneau wrote: For 90 percent of

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-11 Thread Terry Therneau
For 90 percent of what I do I strongly prefer the loose (S3) rather than the rigid (S4) classes. So I'm closer to Rolf. My summary of S4 vs S3 A large increment in 1. nuisance to write 2. difficulty to debug 3. ability to write very obscure code 4. design Gain 5. ability to dir

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-10 Thread Ben Bolker
library(fortunes) fortune("S4") Sean Davis: It got me going quickly with S4 methods, which it seems to me are the way to go in most cases. Rolf Turner: If you want to simultaneously handcuff yourself, strap yourself into a strait jacket, and tie yourself in knots, and moreover write code which i

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-10 Thread James W. MacDonald
Bryan Hanson wrote: Hello R Folks... Not a technical question, but I need some advice and perspective. I¹ve got a set of functions I¹m planning to put together into a package. The main hunk of data that gets used by different functions is currently an S3 list. I¹ve been reading about S4 ob

Re: [R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-10 Thread Gabor Grothendieck
On Mon, Aug 10, 2009 at 11:03 AM, Bryan Hanson wrote: > itself doesn't take advantage of much, except the ability to define > subclasses at a later date (maybe that is sufficient reason though). S3 supports subclasses too. __ R-help@r-project.org mailin

[R] Need Advice: Considering Converting a Package from S3 to S4

2009-08-10 Thread Bryan Hanson
Hello R Folks... Not a technical question, but I need some advice and perspective. I¹ve got a set of functions I¹m planning to put together into a package. The main hunk of data that gets used by different functions is currently an S3 list. I¹ve been reading about S4 objects, and I see the (nu