Skip to content
Prev 8181 / 21307 Next

[Bioc-devel] BiocGenerics attach when GenomicFeatures imported

Hi Marcin,
On 10/19/2015 05:11 AM, Marcin Cie?lik wrote:
Not sure exactly what you mean by "use the genes() function". Do you
mean when you add an internal call to genes() in one of the functions
of your package? Are you saying that before you add that call, when you
install and load your package BiocGenerics doesn't get attached (only
loaded via a namespace), but after you add the call to genes() and
re-install and re-load your package, BiocGenerics now gets attached?
I would be surprised if that was the case.

However, if by "use the genes() function" you mean use the genes()
function in an example or in the vignette then running the example or
the code in the vignette will necessarily attach GenomicFeatures and
consequently BiocGenerics (which GenomicFeatures depends on via the
Depends field).

Please clarify in which context you "use the genes() function". Also
please show your DESCRIPTION file.
There could be several reasons for that:

- your package could depend (via the Depends field) on a package that
   depends itself (via the Depends field again) directly or indirectly
   on BiocGenerics

- one of the functions in your package could use an explicit call
   to library() or require() to attach a package that depends directly
   or indirectly (via the Depends field) on BiocGenerics

- not sure what happens exactly if your package contains a dataset
   that is a serialized instance of a class defined in a package
   that depends directly or indirectly (via the Depends field) on
   BiocGenerics, but that could be another reason or at least something
   to investigate

Hard to know exactly what's going on in your case without more
information.

Thanks,
H.