Skip to content
Prev 6553 / 21307 Next

[Bioc-devel] depends on packages providing classes

Well, first I want to make sure that there is not something special
regarding S4 methods and classes. I have a feeling that they are a special
case.

Second, while I agree with Jim's general opinion, it is a little bit
different when I have return objects which are defined in other packages.
If I don't depend on this other package, the user is hosed wrt. the return
object, unless I manually export all classes from this other package, like
  importClassesFrom("GenomicRanges", "GRanges")
  exportClasses("GRanges")
Surely that is not intended.

It is important that my package works without being attached to the search
path and I do this by carefully importing what I need, ie. my code does not
require that my dependencies are attached to the search path.  But the end
user will be hosed without it.

My impression is that the NOTE in R CMD check was written by someone who
did not anticipate large-scale use and re-use of classes and methods across
many packages.

Best,
Kasper
On Tue, Oct 28, 2014 at 11:14 AM, James W. MacDonald <jmacdon at uw.edu> wrote: