Skip to content
Prev 7263 / 21312 Next

[Bioc-devel] issue about S4 slot has a dist object.

I used my unreleased rgtags package to search for references to setOldClass
in Bioc:

library(rgtags)
classes <- sub(".*\\.", "", methods(print))
defs <- do.call(c, lapply(classes, findDefinitions))
oldClass <- lapply(expr(defs), `[[`, 1L) == quote(setOldClass)
defs[oldClass]

           tagname                                              path line
1             AsIs         BiocGenerics/R/S3-classes-as-S4-classes.R   20
2          POSIXlt                       gmapR/R/GsnapOutput-class.R   10
3             dist                       MLInterfaces/R/AllClasses.R  105
4             dist                 MLInterfaces/inst/oldFiles/INIT.R   15
5             dist                              graph/R/AllClasses.R   45
6             dist                           phyloseq/R/allClasses.R  151
7          formula                      biovizBase/R/facets-method.R   21
8          formula                         geeni/R/gdManager-class.R    8
9         function                               gQTLstats/R/allS4.R    1
10          hclust      MLInterfaces/inst/oldFiles/classInterfaces.R   16
11          hclust                               chroGPS/R/clusGPS.R    2
12          kmeans      MLInterfaces/inst/oldFiles/classInterfaces.R   17
13 numeric_version     AnnotationHub/R/AnnotationHubMetadata-class.R    3
14 numeric_version AnnotationHubData/R/AnnotationHubMetadata-class.R   12
15          prcomp                         MLInterfaces/R/clDesign.R   23
16          prcomp      MLInterfaces/inst/oldFiles/classInterfaces.R   18
17     sessionInfo                            GGtools/R/AllClasses.R    1

Note that POSIXlt, formula and function are already defined by the methods
package. I have removed the calls from gmapR and biovizBase, but the
maintainers of the other packages should be notified. It looks like "dist"
was a good choice, because it is in three packages. The rest of the classes
are somewhat specialized. What's the deal with AnnotationHub and
AnnotationHubData? I will run a similar analysis of CRAN.
On Wed, Apr 1, 2015 at 5:18 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: