Re: [Roxygen-devel] Usage for S4 classes

2012-09-13 Thread Hadley Wickham
> I'd personally prefer that if there is such functionality, it is disabled by > default, since we tend to like to hide new(). Since overriding initialize is > problematic, using new() would expose the slots, which are normally > considered implementation details. Others may differ. Ah ok, so slot

Re: [Roxygen-devel] Usage for S4 classes

2012-09-12 Thread Michael Lawrence
I'd personally prefer that if there is such functionality, it is disabled by default, since we tend to like to hide new(). Since overriding initialize is problematic, using new() would expose the slots, which are normally considered implementation details. Others may differ. Michael On Wed, Sep 1

Re: [Roxygen-devel] Usage for S4 classes

2012-09-12 Thread Hadley Wickham
Or should that just come from documenting the constructor and class in the same file? Hadley On Wed, Sep 12, 2012 at 7:44 PM, Hadley Wickham wrote: > Hi all, > > Do you think it makes sense to add usage statement to S4 classes? i.e. > > new("MyClass", a, b, c, d = 1) > > where a, b, c, d are tak

[Roxygen-devel] Usage for S4 classes

2012-09-12 Thread Hadley Wickham
Hi all, Do you think it makes sense to add usage statement to S4 classes? i.e. new("MyClass", a, b, c, d = 1) where a, b, c, d are taken from the representation and prototype. Hadley -- RStudio / Rice University http://had.co.nz/ ___ Roxygen-devel m