Skip to content
Prev 2407 / 21312 Next

[Bioc-devel] The ShortRead::chromosome function

On 12/10/2010 11:25 AM, Steve Lianoglou wrote:
Hi Steve --

I think what is going on is that exportMethod adds your method to the
'chromosome' generic. While the 'chromosome' generic is visible inside
your package, it is not, unfortunately, available to the user. E.g., if
the user were to then library(ShortRead), my guess is they'd see your
chromosome method.

You'll want  to either re-export the generic export(chromosome) or make
the chromosome generic visible to the user by having your package
Depend: on ShortRead.

A consequence of exporting the chromosome generic is that R CMD check
will warn that you need to document it; it's not really clear what your
documentation would be -- see ShortRead::chromosome ?

Martin