I am submitting my R package to CRAN, and am receiving a warning from the CRAN servers that does not appear when I run R CMD CHECK --as-cran
locally on the package tarball prior to uploading to CRAN. This causes my package to fail the automatic CRAN check.
This is the warning:
* checking DESCRIPTION meta-information ... WARNING
Dependence on R version '3.4.3' not with patchlevel 0
My DESCRIPTION file contains this line:
Depends: R (>= 3.4.3)
What does this warning mean? Thanks!
From the latest version of Writing R Extensions we note, from Section 1.1.3:
It is inadvisable to use a dependence on R with patchlevel (the third digit) other than zero. Doing so with packages which others depend on will cause the other packages to become unusable under earlier versions in the series, and e.g. versions 3.x.1 are widely used throughout the Northern Hemisphere academic year.
The patchlevel is z
in R x.y.z
, so you are specifying a patchlevel of 3
for the 3.4 point release, and that is what is being warned against.
Do you need to depend on this particular patchlevel?
That was discussed recently on the (excellent) r-package-devel
list: Such dependencies should be made to the 'zero' level, ie R (>= 3.4.0)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With