Skip to content
Prev 5946 / 21312 Next

[Bioc-devel] Confusing namespace issue with IRanges 1.99.17

On 7/8/14 12:27 PM, Herv? Pag?s wrote:
I thought selective imports were considered "best practice" as well.  I 
seem to remember an email from Martin on this list a while ago saying 
just that.  So perhaps that is why everyone is doing it?

As in many things, perhaps the middle road is the best practice?  If you 
are using only one or two functions from a package, importFrom makes a 
lot more sense.  But if you are using multiple classes and methods from 
a package, or if you have to start importing things like '[', then it is 
more straightforward to import the entire package.

Stephanie