-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsos_release_to_CRAN.R
75 lines (55 loc) · 1.93 KB
/
sos_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
71
72
73
74
75
# File > "Open Project..." > [parent of Package file]
# https://r-pkgs.org/release.html
# First open project in this package directory
# Then open this file.
library(usethis)
#usethis::use_release_issue()
#use_release_issue()
# I cannot make this work.
# Reported to Jenny Bryan, 2023-06-16.
#20.1. Pick a version number:
# in DESCRIPTION: must be later than any version on CRAN
#20.3. The submission process
# Store submission comments in cran-comments.md
#20.3.1. Test environments
# devtools::check_win_*()
dir()
devtools::check()
devtools::check_win_devel()
devtools::check_win_release()
devtools::check_win_oldrelease()
devtools::check_rhub()
#20.3.3. Reverse dependencies
# install.packages("revdepcheck")
#devtools::install_github('r-lib/revdepcheck')
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
#20.4. Update README.md and NEWS.md
#20.5. Submit to CRAN
library(devtools)
spell_check()
release()
#20.6. Update the version number for the future
#20.7. Publicise
#20.1. Pick a version number: in DESCRIPTION > what's on CRAN
#20.2. Run & document R CMD check
# 2.1-0 because this is to match the move of
# the database maintenance to wu.ut.at
#20.3. Check CRAN policies
#20.4. Update README.md and NEWS.md
#20.5. Submit to CRAN
#20.6. Update the version number for the future
#20.7. Publicise
#After the package has been accepted, I should DELETE
# CRAN-SUBMISSION
# UNLESS I USE
# usethis::use_github_release(),
# because then IT is supposed to delete this temporary file.
#
# usethis::use_github_release() creates release notes
# from the NEWS bullets relevant to the current release.
# Note that usethis::use_github_release() depends crucially
# on the CRAN-SUBMISSION file that was written by
# devtools::submit_cran(): that’s how it knows which SHA to tag.
# After the successful creation of the GitHub release,
# use_github_release() deletes this temporary file.