About the S4 class documentation, I did exact as in the example inlinedocs gave but still does not work. But I think it might be because my class definition lies inside a function, right?<br><br>For ex.<br><br>.initFoo <- function(where) {<br>
setClass("foo",<br> ###foo class <br> representation(a="character", <br> ### argument a<br> b="numeric"),<br> ### argument b<br>
where=where)<br>}<br><br>Best,<br><br>Thiago<br><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 9:54 PM, Toby Dylan Hocking <span dir="ltr"><<a href="mailto:Toby.Hocking@inria.fr">Toby.Hocking@inria.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Thiago, thanks for your interest in inlinedocs.<br>
<br>
The recommended way to document examples using inlinedocs is the "ex"<br>
attribute, as in the second screenshot on this web page.<br>
<a href="http://inlinedocs.r-forge.r-project.org/" target="_blank">http://inlinedocs.r-forge.r-project.org/</a> i.e.<br>
<br>
myfun <- structure(function(<br>
arg1 ##<< doc1<br>
){<br>
body of function<br>
},ex=function(){<br>
example code<br>
})<br>
<br>
For documenting S4 classes using inlinedocs, see<br>
example(package.skeleton.dx). In the silly example package, we do<br>
setClass("Silly",...) and this results in Silly-class.Rd, which can be<br>
looked up using alias Silly or Silly-class after the silly package is<br>
loaded. help("Silly") or help("Silly-class") should work.<br>
<br>
Currently it is not possible to document S4 methods using inlinedocs,<br>
but if you write some code that supports this we would definitely<br>
consider it for inclusion in inlinedocs.<br>
</blockquote></div><br><br clear="all"><br>-- <br>Thiago Guerrera Martins<br><br>