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

Hugh Parsonage hugh.parsonage at gmail.com
Wed Jan 24 14:44:34 CET 2018


I believe it is a requirement that if package A imports package B, and
package B lists package C in Depends: then package A must also list
package C in Depends:
A popular stackoverflow answer states this.[1] I can't find any other
source but it makes sense.

What if package B is suggested by package A and package B depends on a
certain version of R? That is if package A *suggests* package B and
package B lists Depends: R (>= ver). In such a case, is it necessary
to list this dependency in Suggests? Certainly endnote 12 of WRE says
it would be necessary if the dependency were for a package, but
doesn't seem to mention similar dependencies on R version. And, as far
as I can see, no package on CRAN lists R in Suggests, so it would to
be non-standard if not prohibited.

S <- available.packages()
S[grepl("(?<!([A-Za-z]))R \\(", S[, "Suggests"], perl = TRUE), ]


[1] https://stackoverflow.com/a/8638902/1664978



More information about the R-package-devel mailing list