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.<br>
<br>Michael<br><br><div class="gmail_quote">On Wed, Sep 12, 2012 at 5:45 PM, Hadley Wickham <span dir="ltr"><<a href="mailto:h.wickham@gmail.com" target="_blank">h.wickham@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Or should that just come from documenting the constructor and class in<br>
the same file?<br>
<span class="HOEnZb"><font color="#888888"><br>
Hadley<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Sep 12, 2012 at 7:44 PM, Hadley Wickham <<a href="mailto:h.wickham@gmail.com">h.wickham@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> Do you think it makes sense to add usage statement to S4 classes? i.e.<br>
><br>
> new("MyClass", a, b, c, d = 1)<br>
><br>
> where a, b, c, d are taken from the representation and prototype.<br>
><br>
> Hadley<br>
><br>
> --<br>
> RStudio / Rice University<br>
> <a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>
<br>
<br>
<br>
--<br>
RStudio / Rice University<br>
<a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>
_______________________________________________<br>
Roxygen-devel mailing list<br>
<a href="mailto:Roxygen-devel@lists.r-forge.r-project.org">Roxygen-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel</a><br>
</div></div></blockquote></div><br>