Using the devtools::release()
function to submit a new version of a package to CRAN, the file CRAN-SUBMISSION is automatically created and populated with something like this:
Version: 0.1.9
Date: 2022-06-14 05:51:04 UTC
SHA: f583bd94bfbb3b1626670e7dbe08a9d3b494bbc8
I noticed the file is automatically added to the .Rbuildignore
file, but is there a good reason why I should track this file in git, or should I simply remove it from the repository / .gitignore
it?
I have a vague memory of the same file previously saying something like "remove this once the release is on CRAN", but I'd like to know more about why it exists in the first place (and if there's any reason why it doesn't say that anymore).
use_github_release()
removes it automatically because the user isn't actually submitting to CRAN, so again, wondering if there's another reasonrelease()
orsubmit_cran()
don't delete it once it has been sent... Probably because success is not automatically reported to the function by CRAN, and might take a few days? I might track it as it ultimately increases transparency of everything that's been done with the package... – Hasidism