RE: [Rd] RE: [R] Testing for S4 objects

2004-12-11 Thread Prof Brian Ripley
On Sat, 11 Dec 2004, John Fox wrote: Thanks for this. I'll give your new definition of isS4object() a try. The function is used in my Rcmdr package, which provides a basic-statistics GUI for R. When an object -- the result of executing a command -- is printed, I test whether it is an S4 object to d

RE: [Rd] RE: [R] Testing for S4 objects

2004-12-11 Thread John Fox
Dear John, Thanks for this. I'll give your new definition of isS4object() a try. The function is used in my Rcmdr package, which provides a basic-statistics GUI for R. When an object -- the result of executing a command -- is printed, I test whether it is an S4 object to decide whether to use show

Re: [Rd] RE: [R] Testing for S4 objects

2004-12-11 Thread John Chambers
John Fox wrote: Dear r-devel list members, I'm moving this question to r-devel because it seems thornier than I originally thought. Yes, it's certainly not for r-help. I've already mentioned (on r-help) that the approach that John Chambers suggested (below) fails for objects of class "by": x <- r