Last active
March 18, 2024 09:59
-
-
Save moritzpschwarz/9067febef4b483bb64ae3d7ee76054c3 to your computer and use it in GitHub Desktop.
Steps to release a package to CRAN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check out all info here: https://r-pkgs.org/release.html | |
# update NEWS | |
# udpate cran-comments.Rd | |
tools::resaveRdaFiles("data/") | |
# build the tarball and check whether the size is below 5 MB | |
devtools::build() | |
devtools::release_checks() | |
devtools::check_win_devel() # this will just send to server, then it is useable again | |
devtools::check_rhub() # this sends to server but follows the progress, so the session is not useable in the meantime | |
# in a new session start: | |
devtools::check(args = "--as-cran") | |
devtools::spell_check() | |
devtools::release() | |
# or when you don't want all tests: | |
# devtools::release(check = FALSE) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment