[Bioc-devel] Importing classes into NAMESPACE

Karolis Uziela karolis.uziela at scilifelab.se
Wed Feb 25 18:02:54 CET 2015

Thank you for your help everyone! Importing constructors separately (as
Thomas suggested), has solved the problem.

@Gabe: I am not using any methods from Biobase, GenomicRanges
and S4Vectors. I am only using their constructors. Does it mean that I can
skip importing the classes and only import the constructors? Or did you
have something else in your mind?

I thought it is better to avoid importing whole packages, especially if
they are large. Or do you have some arguments, why I should do that?


On Wed, Feb 25, 2015 at 3:31 PM, Gabe Becker <becker.gabe at gene.com> wrote:

> Karolis,
> Do you really not need any of the methods for GRanges and ExpressionSet
> objects? import(GenomicRanges) might be better, even though the package
> isn't exactly small.
> ~G
> On Wed, Feb 25, 2015 at 6:27 AM, Thomas Sandmann <sandmann.thomas at gene.com
> > wrote:
>> Hi Karolis,
>> These classes have constructor functions of the same name as the class.
>> For
>> example, the constructor function for GRanges is called GRanges().
>> If you use the constructors you need to import them separately, e.g.
>> importFrom GenomicRanges GRanges
>> Best,
>> Thomas
>>         [[alternative HTML version deleted]]
>> _______________________________________________
>> Bioc-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/bioc-devel
> --
> Gabriel Becker, Ph.D
> Computational Biologist
> Genentech Research


Karolis Uziela

PhD student
Science for Life Laboratory
Box 1031
17121 Solna, Sweden
Mob. +46 729 120 395

	[[alternative HTML version deleted]]

More information about the Bioc-devel mailing list