Skip to content
Prev 46777 / 63424 Next

"False" warning on "replacing previous import" when re-exporting identical object

On Sat, Sep 21, 2013 at 9:44 AM, Ben Bolker <bbolker at gmail.com> wrote:
I submitted PR#15451:

'Bug 15451 - PATCH: namespaceImportFrom() not to warn when the
identical object is imported twice' on 2013-09-10
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15451

There was a brief response from Prof. Ripley and then it was closed.
However, I followed up asking [cc:ing BDR and R-core] for
clarification and I gave some further arguments.  There has been no
response to date.
My interpretation of all this is that either re-exports or import():s
has to/should go.  Trying to predict the future of 'R CMD check' and
re-exports are likely to cause issues as it now stands, I'd say, move
towards dropping import() and start using importFrom().  It's a
tedious move but it can be done.  My issue with packages using
importFrom() is that they will be less agile for changes in APIs, e.g.
one function is moved from on package to another (of the same
"family").
Yes, that's a very ad hoc workaround (and not part of my perfect world
because then we get back to the time of name/argument clashes) and I
don't think you want to go there.

/Henrik

        
On Thu, Sep 12, 2013 at 9:46 AM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote: