[BioC] NAMESPACES, export, and unit tests
Herve Pages
hpages at fhcrc.org
Mon May 1 23:37:32 CEST 2006
But the question is: do we consider it a feature for the unit tests
not being able to access the non-exported objects in the normal
way... or is it a bug?
I'm asking because there seems to be other things that you can't do
in the unit tests (like defining S4 classes or dispatching on an S4
class defined somewhere in the package, I don't remember exactly).
I'm wondering what's the motivation behind these restrictions...
H.
Seth Falcon wrote:
>One option is to use the ':::' function. This allows one to override
>namespace protection. For example, in your test code you could call:
>
> gaggle:::.gaggleNetworkToGraphNEL()
>
>':::' can be dangerous; non-exported functions can change without
>notice. If you are using it with your own package, well, that seems
>safe enough :-)
>
>+ seth
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor
>Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
>
--
------------------------
Hervé Pagès
E-mail: hpages at fhcrc.org
Phone: (206) 667-5791
Fax: (206) 667-1319
More information about the Bioconductor
mailing list