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.wick...@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.wick...@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@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel
>
_______________________________________________
Roxygen-devel mailing list
Roxygen-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel

Reply via email to