Skip to content
Prev 7002 / 21312 Next

[Bioc-devel] Importing classes into NAMESPACE

On Wed, Feb 25, 2015 at 9:02 AM, Karolis Uziela <
karolis.uziela at scilifelab.se> wrote:

            
So the code in your package never uses the objects, only returning them
directly to the user for their use? If so, I think that's actually a case
where Depends is called for, since that functionality is not useful to the
user if they don't have those classes and methods available.
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.

~G