Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CRAN check warning: Dependence on R version '3.4.3' not with patchlevel 0

Tags:

r

cran

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!

like image 586
Pamela Avatar asked Jan 24 '18 23:01

Pamela


2 Answers

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?

like image 165
Gavin Simpson Avatar answered Nov 08 '22 20:11

Gavin Simpson


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).

like image 22
Dirk Eddelbuettel Avatar answered Nov 08 '22 19:11

Dirk Eddelbuettel