Re: [Rd] optional setValidity()

2008-05-07 Thread Sklyar, Oleg (MI London)
gt; Oleg (MI London) > Sent: 07 May 2008 16:13 > To: Robin Hankin; R-devel@r-project.org > Subject: Re: [Rd] optional setValidity() > > You could add a flag to your class and check if it set as a > first thing in the validity as in the example below: > > setClass("foo&

Re: [Rd] optional setValidity()

2008-05-07 Thread Sklyar, Oleg (MI London)
TED] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hankin > Sent: 07 May 2008 15:44 > To: R-devel@r-project.org > Subject: [Rd] optional setValidity() > > Hi > > > Suppose I have an S4 class "f

[Rd] optional setValidity()

2008-05-07 Thread Robin Hankin
Hi Suppose I have an S4 class "foo" and a validity checking function ".checkfoo()": setClass("foo", representation=representation("numeric")) setValidity("foo" , .checkfoo) is fine; in my application, .checkfoo() verifies that a bunch of necessary conditions are met. But .checkfoo() is very