Skip to content
Prev 6562 / 21307 Next

[Bioc-devel] depends on packages providing classes

On Wed, Oct 29, 2014 at 2:15 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:

            
I think that would be excessive.  You are correct that some code will
not run, and the user will have to decide what to do.  We have access to
core members.  example() could be tuned to check for attachment of the
package hosting the page and fail if the host package is not attached, with
a hint as to how to proceed.  For cutting and pasting, caveat emptor.
I think this is a reasonable objective.
In my view there is a risk of needless namespace pollution in this case.
Depends seems extreme, other things being equal.  Better to let the user
determine in real time whether this should occur.  It seems to me that
particularly
when packages have lots of complicated interrelationships, it is best to
have the
developers manage symbols internally to the code, reducing as much as
possible
the impact on the user the user environment.  Minimizing the use of Depends
seems
consistent with this.
I'm sympathetic to this view but would rather be out of the business of
figuring out what the end-user's business is apart from using and
getting value from the functions defined in the package that I contributed.

Leaving the attachments up to the user is one way.
We should try to assemble data on this concern.  I don't know how to do it.