22.2 submission process & test environments

  • Don’t do it manually - just use devtools::release()
  • Include a cran-comments.md file (usethis::use_cran_comments()) to describe the results from an R CMD CHECK and the systems that it was run on (those on your system, rhub or GitHub actions)

CRAN runs on Windows, Mac OS X, Linux and Solaris. You don’t need to test on all but you need to test on some and mention in the comments which you used.

devtools::release() suggests that you test using rhub - I’m not sure what the difference is between this and the checks done by GitHub actions (if there is any)

If you have an OS-specific problem:

  1. use a virtualisation tool so that you can debug locally


  2. send repeatedly to GitHub with actions to test on problematic system


  3. send to CRAN and hope for the best