Skip to content

Commit

Permalink
add release_to_CRAN.R
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgraves237 committed Feb 27, 2024
1 parent f6864ae commit 4f8a9bd
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions release_to_CRAN.R
@@ -0,0 +1,70 @@
##
## 1. CHECK FOR REVISIONS TO THE PROCESS documented in
## the chapter on "Releasing to CRAN" in
## Wickham and Bryan, R Packages:
## https://r-pkgs.org/release.html

##
## 2. Open Project = the package file (that includes includes DESCRIPTION, etc.)
## ... because the "process recommended "Release to CRAN" process
## recommended by Wicham and Bryan assumes that.

##
## 3. Pick a version number: The version number
## in DESCRIPTION: must be later than any version on CRAN
##

##
## 4. The submission process
## Store submission comments in cran-comments.md
##

##
## 5. Test environments
##
# devtools::check_win_*()

devtools::check_win_devel()
devtools::check_win_release()
devtools::check_win_oldrelease()

devtools::check_rhub()

##
## 6. Reverse dependencies
##

# install.packages("revdepcheck")
#Warning in install.packages :
# package ‘revdepcheck’ is not available for this version of R
# https://revdepcheck.r-lib.org/
# install using:
# devtools::install_github('r-lib/revdepcheck')

revdepcheck::revdep_reset()

revdepcheck::revdep_check(num_workers = 4)

##
## 7. Update README.md and NEWS.md
##

##
## 8. spell check
##

devtools::spell_check()

##
## 9. Release to CRAN
##

release(Pkg)

##
## 10. Update the version number for the future
##

##
## 11. Publicise
##

0 comments on commit 4f8a9bd

Please sign in to comment.