Re: [Rd] Problems initializing an extended S4 class

2008-03-03 Thread Jim Regetz
Hi Martin, Many thanks for the reply, that really helps a lot. Some follow-up observations below. Martin Morgan wrote: > Hi Jim -- > > I think your problems have to do with the way 'initialize' and > 'validObject' work together. At some point in it's code, validObject > converts an instance 'b'

Re: [Rd] Problems initializing an extended S4 class

2008-03-01 Thread Martin Morgan
Hi Jim -- I think your problems have to do with the way 'initialize' and 'validObject' work together. At some point in it's code, validObject converts an instance 'b' of a derived class (e.g., B) into that of the base class (e.g., A). It does this, by calling a = new("A"), and then copying the rel

[Rd] Problems initializing an extended S4 class

2008-02-28 Thread Jim Regetz
Hi all, I am having trouble extending S4 classes in cases where I'm using both validity and initialize methods. I've read as much S4 information as I can find, but I've yet to have that "a-ha" moment. In my application, I am using validity methods to guard against inappropriate input data that