[Roxygen-devel] Usage for S4 classes
Michael Lawrence
lawrence.michael at gene.com
Thu Sep 13 05:20:39 CEST 2012
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 12, 2012 at 5:45 PM, Hadley Wickham <h.wickham at gmail.com> wrote:
> 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 <h.wickham at gmail.com>
> 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 taken from the representation and prototype.
> >
> > Hadley
> >
> > --
> > RStudio / Rice University
> > http://had.co.nz/
>
>
>
> --
> RStudio / Rice University
> http://had.co.nz/
> _______________________________________________
> Roxygen-devel mailing list
> Roxygen-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/roxygen-devel/attachments/20120912/5d03485c/attachment-0001.html>
More information about the Roxygen-devel
mailing list