Skip to content
Prev 15440 / 21307 Next

[Bioc-devel] Import BSgenome class without attaching BiocGenerics (and others)?

The way to keep a "clean namespace" is to selectively import symbols
into your namespace, not to import _nothing_ into your namespace.
Otherwise, your code will fill with namespace qualifications that
distract from what is more important to communicate: the intent of the
code. And no, there's no way to define method signatures using
anything other than simple class names.

It would be interesting to explore alternative ways of specifying
method signatures. One way would be if every package exported a "class
reference" (class name with package attribute, at least)  for each of
its classes. Those could be treated like any other exported object,
and referenced via namespace qualification. It would require major
changes to the methods package but that should probably happen anyway
to support disambiguation when two packages define a class of the same
name. It would be nice to get away from the exportClasses() and
importClasses() stuff. File that under the "rainy year" category.

Michael

On Fri, Sep 6, 2019 at 3:39 AM Bhagwat, Aditya
<Aditya.Bhagwat at mpi-bn.mpg.de> wrote:

  
    

Thread (25 messages)

Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Kasper Daniel Hansen Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 6 Hervé Pagès Import BSgenome class without attaching BiocGenerics (and others)? Sep 10 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Hervé Pagès Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Hervé Pagès Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Hervé Pagès Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Michael Lawrence Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Bernat Gel Import BSgenome class without attaching BiocGenerics (and others)? Sep 11 Bernat Gel Import BSgenome class without attaching BiocGenerics (and others)? Sep 12 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 12 Bernat Gel Import BSgenome class without attaching BiocGenerics (and others)? Sep 12 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 12 Bhagwat, Aditya Import BSgenome class without attaching BiocGenerics (and others)? Sep 12