-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrelease_to_CRAN.R
70 lines (53 loc) · 1.3 KB
/
release_to_CRAN.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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
##