Skip to content
Prev 30853 / 63421 Next

install.packages and dependency version checking

Hi,
Prof Brian Ripley wrote:
I think we need to have this functionality in both Imports and Depends,
  see my response to another point for why.
I don't think that is true.  There are cases where both Imports and Depends
are reasonable.  The purpose of importing is to ensure correct resolution of
symbols in the internal functions of a package. I would do that in almost all
cases.  In some instances I want users to see functionality from another package
- and I can then either a) (re)export those functions, or if there are lots of
them, then b) just put the package also in Depends.  Now, a) is a bit less
useful than it could be since R CMD check gets annoyed about these re-exported
functions (I don't think it should care, the man page exists and is findable).
It may be worthwhile, but this is a less frequent use case and I would
prioritize it lower than having that functionality in Imports.
I suspect one needs = (basically as Gabor pointed out, some packages have issues).
thanks
    Robert