-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfda_release_to_CRAN.R
54 lines (37 loc) · 1.24 KB
/
fda_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
# File > "Open Project..." > [parent of Package file]
# https://r-pkgs.org/release.html
#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()
PkgName <- "fda"
PkgRegExpr <- paste0('^', PkgName, '$')
(Pkg <- dir(pattern=PkgRegExpr))
devtools::check_win_devel(Pkg)
devtools::check_win_release(Pkg)
devtools::check_win_oldrelease(Pkg)
devtools::check_rhub(Pkg)
#20.3.3. Reverse dependencies
# install.packages("revdepcheck")
#devtools::install_github('r-lib/revdepcheck')
revdepcheck::revdep_reset(Pkg)
revdepcheck::revdep_check(Pkg, num_workers = 4)
#20.4. Update README.md and NEWS.md
#20.5. Submit to CRAN
library(devtools)
spell_check(Pkg)
release(Pkg)
#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