Skip to content

Commit 4f8a9bd

Browse files
committed
add release_to_CRAN.R
1 parent f6864ae commit 4f8a9bd

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

Diff for: release_to_CRAN.R

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
##
2+
## 1. CHECK FOR REVISIONS TO THE PROCESS documented in
3+
## the chapter on "Releasing to CRAN" in
4+
## Wickham and Bryan, R Packages:
5+
## https://r-pkgs.org/release.html
6+
7+
##
8+
## 2. Open Project = the package file (that includes includes DESCRIPTION, etc.)
9+
## ... because the "process recommended "Release to CRAN" process
10+
## recommended by Wicham and Bryan assumes that.
11+
12+
##
13+
## 3. Pick a version number: The version number
14+
## in DESCRIPTION: must be later than any version on CRAN
15+
##
16+
17+
##
18+
## 4. The submission process
19+
## Store submission comments in cran-comments.md
20+
##
21+
22+
##
23+
## 5. Test environments
24+
##
25+
# devtools::check_win_*()
26+
27+
devtools::check_win_devel()
28+
devtools::check_win_release()
29+
devtools::check_win_oldrelease()
30+
31+
devtools::check_rhub()
32+
33+
##
34+
## 6. Reverse dependencies
35+
##
36+
37+
# install.packages("revdepcheck")
38+
#Warning in install.packages :
39+
# package ‘revdepcheck’ is not available for this version of R
40+
# https://revdepcheck.r-lib.org/
41+
# install using:
42+
# devtools::install_github('r-lib/revdepcheck')
43+
44+
revdepcheck::revdep_reset()
45+
46+
revdepcheck::revdep_check(num_workers = 4)
47+
48+
##
49+
## 7. Update README.md and NEWS.md
50+
##
51+
52+
##
53+
## 8. spell check
54+
##
55+
56+
devtools::spell_check()
57+
58+
##
59+
## 9. Release to CRAN
60+
##
61+
62+
release(Pkg)
63+
64+
##
65+
## 10. Update the version number for the future
66+
##
67+
68+
##
69+
## 11. Publicise
70+
##

0 commit comments

Comments
 (0)