Skip to content
Prev 2343 / 12125 Next

[R-pkg-devel] Is it ever appropriate (or mandatory) to Suggests: R (>= version) ?

The advice at the link you cite ([1] https://stackoverflow.com/a/8638902/1664978) is not quite right:
You don't need (and in general should not) put a package in Depends only because some of your imports do. In some cases you may have to, but this is only because of missing imports in the package you import. Note that even if the package you import  (package B) "Depends" on package "C", "B" still needs to import the functionality  from "C" it needs (e.g. putting import(C)) in its NAMESPACE file.  These days 'R CMD check' enforces this but some older packages on CRAN  may not have the import() directives and in that case you have no other option than to "Depend" on "C". (In this case, write to the package maintainer to alert them about the problem.)

As to indirect dependency on R version I am also not clear.

Georgi