I haven't seen timings that tell me that targeted importing is worth the
extra maintenance cost when methods move around between packages, functions
change names, etc. It's largely a preference thing AFAIK, but I like to
make sure I get everything I will need without worrying about when I do an
import, rather than needing to be sure of the exact subset of symbols I
want to use before hand. This, of course, is less compelling when you
really do only need one thing, but I don't find that to be particularly
common situation myself.
Regards,
Karolis
On Wed, Feb 25, 2015 at 3:31 PM, Gabe Becker <becker.gabe at gene.com>
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]]