As a quick followup: I've been working on an database abstraction package (<a href="https://github.com/rtirrell/databasr">https://github.com/rtirrell/databasr</a>) that makes extensive use of reference classes. I'd like to release it, but I'm very unexcited at the prospect of writing Rd by hand. So that's my particular motivation.<div>
<br clear="all"><div>--</div><font color="#666666">Robert Tirrell | </font><span style="color:rgb(102, 102, 102)"><a href="mailto:rpt@stanford.edu" target="_blank">rpt@stanford.edu</a> | (607) 437-6532</span><div><div><font color="#CCCCCC"><font color="#333333"><font color="#666666">Program in Biomedical Informatics | </font></font></font><font color="#CCCCCC"><font color="#333333"><font color="#666666">Butte Lab | </font></font></font><span style="color:rgb(102, 102, 102)">Stanford University</span></div>
</div><br>
<br><br><div class="gmail_quote">On Wed, Mar 9, 2011 at 22:38, Rob Tirrell <span dir="ltr"><<a href="mailto:rpt@stanford.edu">rpt@stanford.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Based on this discussion, as well as the parallel one on S4, what is the way forward? Do any of the core roxygen team foresee working on this in the near future? I, for one, would be very excited to see S4/reference classes supported more fully. I'd be than willing to help out in some degree, but at this point it's not completely clear to me what the next steps are.<div>
<div class="im">
<br clear="all"><div>--</div><font color="#666666">Robert Tirrell | </font><span style="color:rgb(102, 102, 102)"><a href="mailto:rpt@stanford.edu" target="_blank">rpt@stanford.edu</a> | (607) 437-6532</span><div>
<div><font color="#CCCCCC"><font color="#333333"><font color="#666666">Program in Biomedical Informatics | </font></font></font><font color="#CCCCCC"><font color="#333333"><font color="#666666">Butte Lab | </font></font></font><span style="color:rgb(102, 102, 102)">Stanford University</span></div>
</div><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Sat, Mar 5, 2011 at 17:30, Peter Danenberg <span dir="ltr"><<a href="mailto:pcd@roxygen.org" target="_blank">pcd@roxygen.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> How far along are you in supporting S4?<br>
<br>
Roxygen has basic support for setClass, setGeneric, setMethod; which<br>
Manuel Eugster extended in the Rd2 roclet. I was hoping to canvas the<br>
list, actually, to determine what's missing.<br>
<br>
According to Peter Haverty, there's at least one bug where:<br>
<br>
It wants to do:<br>
<br>
\S4method{"foo<-"}{bar,character,ANY}(x, i, value)<br>
<br>
when it should do:<br>
<br>
\S4method{"foo"}{bar,character,ANY}(x, i) <- value<br>
<br>
> . . . and how much work would be needed to extend that to Reference<br>
<div>> Classes (a significant amount, I'd imagine)?<br>
<br>
</div>Good question: recognizing the use of `setRefClass' will be trivial;<br>
the main work would involve parsing the `fields' and `methods'<br>
parameters.<br>
<br>
The amount of work is directly proportional to how deeply we want to<br>
inspect the reference classes for automatically documentable<br>
information.<br>
</blockquote></div><br>
</div></div></div>
</blockquote></div><br></div>