Hi, I maintain an R package and will submit it to CRAN. Every now and then I run following
rcmdcheck statement locally:
rcmdcheck::rcmdcheck(args = c("--as-cran", "--no-manual"), build_args = c("--no-manual"))
I do this because the 'check-r-package' action from r-lib does not seem to behave in the same way, even while it uses the same default values for the above arguments.
I list two differences here, but there may be more:
- in Github Actions, the CRAN incoming feasibility check is not run (example). Locally, I get:
─ checking CRAN incoming feasibility ... [7s/25s] NOTE (25.5s) Maintainer: ‘Floris Vanderhaeghe <email@example.com>’ New submission Version contains large components (0.0.0.9000) Suggests or Enhances not in mainstream repositories: spDataLarge Availability using Additional_repositories specification: spDataLarge yes https://geocompr.r-universe.dev
- in Github Actions, the package subdirectories check yields no note:
* checking package subdirectories ... OK
but locally it gives a note:
N checking package subdirectories ... Problems with news in ‘NEWS.md’: No news entries found.
These notes are also present when I run checks on win-builder using
devtools::check_win_devel(). So I believe it would be nice if this behaviour would be matched more closely in GH Actions. Could it be that the
--as-cran argument in GH Actions is not effective for some reason?