[x] If not a new package, make sure any warnings/errors in CRAN check results page are fixed
[x] Create branch labelled v[version]-rc, for example, v1.5.2-rc (the "rc" stands for "Release Candidate").
[x] Commit and push to the RC branch.
[x] usethis::use_version('patch')
[x] Clean your package directory to remove any extraneous files, including ones that are git-ignored. (Warning, this will delete any unsaved buffers in RStudio! Also, be sure to close RStudio before taking this step!) Use git clean -xdf.
[x] Build your package with:
PATH=$PATH:/Applications/RStudio.app/Contents/MacOS/pandoc R CMD build [pkgdir]
[x] Do a final check by installing/testing the built package.
[x] devtools::check(remote = TRUE, manual = TRUE)
[x] devtools::check_win_devel()
[x] rhub::check_for_cran()
[x] rhub::check(platform = 'ubuntu-rchk')
[x] revdepcheck::revdep_check(num_workers = 4)
[x] urlchecker::url_check()
[x] Polish NEWS
[x] Run R CMD check --as-cran pkg_version.tar.gz locally
[x] Read every bullet point in the CRAN Policies document if this is the first release of the package. Be sure to check off the items one by one.
Submission
[x] Submit to CRAN via their online form at https://cran.r-project.org/submit.html
[x] If there are R CMD check warnings that are unavoidable, make sure to explain them in the comments.
[x] Approve email
[ ] If rejected, make changes on the RC branch and bump the fourth (patch) version component (i.e. 1.5.2.1)
Preparation
v[version]-rc
, for example,v1.5.2-rc
(the"rc"
stands for "Release Candidate").usethis::use_version('patch')
git clean -xdf
.PATH=$PATH:/Applications/RStudio.app/Contents/MacOS/pandoc R CMD build [pkgdir]
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
rhub::check_for_cran()
rhub::check(platform = 'ubuntu-rchk')
revdepcheck::revdep_check(num_workers = 4)
urlchecker::url_check()
R CMD check --as-cran pkg_version.tar.gz
locallySubmission
https://cran.r-project.org/submit.html
1.5.2.1
)After Acceptance