[R-pkg-devel] Discrepancy between R CMD check results and usethis::use_cran_comments

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Sep 26 09:34:04 CEST 2023


В Tue, 26 Sep 2023 10:01:21 +0300
Leonard Mada via R-package-devel <r-package-devel using r-project.org> пишет:

> ── R CMD check results 

Is it R CMD check or R CMD check --as-cran? You will most likely get a
NOTE when checking a package with --as-cran that had been archived on
CRAN.

> By the way: what is the purpose of this cran-comments.md file? It
> does not seem to be included in the package archive?

This convention is from the book "R Packages" by Hadley Wickham and
Jennifer Bryan:
https://r-pkgs.org/release.html#sec-release-cran-comments

According to the book, it's important to put the CRAN submission
comments under version control. Indeed, the actual file is excluded
from the source package using .Rbuildignore. Its contents are
transferred to the "optional comment" field when the devtools
package submits the form at <https://cran.r-project.org/submit.html>.

Many people find the devtools abstraction layer convenient, and since
you're already using devtools, the path of least resistance is to keep
using this file.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list