[inlinedocs] Examples and S4 classes/methods

Thiago Guerrera thigm85 at gmail.com
Sun Jun 26 12:48:47 CEST 2011


That's because each function contain classes related to each other, like a
grouping to make things more organized, then I would have a .First.lib that
look like this:

.First.lib <- function(libname, pkgname, where) {

 if( !require(methods) ) stop()
 where <- match(paste("package:", pkgname, sep=""), search())

 .initGENERICS(where)
 .initCLASSES_GROUP1(where)
 .initCLASSES_GROUP2(where)
 .initCLASSES_METHOD_FOR_GROUP1(where)

}

I am not sure if this is ideal, but makes things clear for me. Any
suggestion for the organization of S4 classes?

Best,

Thiago

On Sun, Jun 26, 2011 at 12:04 PM, Toby Dylan Hocking
<Toby.Hocking at inria.fr>wrote:

> You are correct: inlinedocs can currently only generate documentation
> for S4 classes defined in the usual way, as indicated in the
> examples.
>
> Out of curiousity, why do you define S4 classes inside of functions?
>



-- 
Thiago Guerrera Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/inlinedocs-support/attachments/20110626/5adc8d04/attachment.htm>


More information about the Inlinedocs-support mailing list