R submit to CRAN: what version of R is to build the package?

I want to send a packet to CRAN. The CRAN repository policy states that "Packages for which the R CMD check issues" ERROR when the new version of R xy0 is released will be archived . "

He also says, "Please make sure that the R CMD check --as-cran is running on the tarball, which will be loaded before sending . "

Running R CMD check --as cran on my tarball gives me a warning:

 Warning: unknown option '--as-cran' 

I am running R version 2.14.1 on Ubuntu 12.04.2 LTS. Is it possible to create the source package using this version or do I need to use R 3.0?

And why does the R CMD check --as-cran not work for me?

+2
source share
3 answers

The document you are referencing says:

Please make sure R CMD check --as-cran is running on tarball to load before sending. This should be done with the release of R or (preferably) R-devel or R-patch.

So, right now you should use R-3.0.1 , and also test the R-devel branch (if possible).

+4
source

From the current CRAN policy in October 2015: β€œPlease ensure that the R-CMD -as-cran check has been run on the tarball to load before sending. This should be done with the current version of R-devel (or if this is not possible and explained in the view, the current R-corrected or current release of R.)

This, I believe, is a change in the policy described in the original accepted answer.

docker / rocker is a way to achieve this quite easily without dropping your development environment.

I think it’s right to build with the latest version, but test with R-devel and the latest version.

+1
source

You can try the new starfox/r-devel container, available at https://hub.docker.com/r/starfox/r-devel/ . It already contains some packages that will make your release more convenient. There is also a guide for its use .

Disclaimer: I am the custodian of both the container and the manual.

+1
source

Source: https://habr.com/ru/post/1202371/


All Articles