Skip to content

Commit 40c8940

Browse files
committed
add Ecdat_release_to_CRAN.R
1 parent 31ac4e7 commit 40c8940

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

Ecdat_release_to_CRAN.R

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# File > "Open Project..." > [parent of Package file]
2+
3+
# https://r-pkgs.org/release.html
4+
5+
#20.1. Pick a version number:
6+
# in DESCRIPTION: must be later than any version on CRAN
7+
#20.3. The submission process
8+
# Store submission comments in cran-comments.md
9+
#20.3.1. Test environments
10+
# devtools::check_win_*()
11+
dir()
12+
13+
PkgName <- "Ecfun"
14+
PkgRegExpr <- paste0('^', PkgName, '$')
15+
(Pkg <- dir(pattern=PkgRegExpr))
16+
17+
devtools::check_win_devel(Pkg)
18+
devtools::check_win_release(Pkg)
19+
devtools::check_win_oldrelease(Pkg)
20+
21+
devtools::check_rhub(Pkg)
22+
23+
#20.3.3. Reverse dependencies
24+
25+
# install.packages("revdepcheck")
26+
#devtools::install_github('r-lib/revdepcheck')
27+
28+
revdepcheck::revdep_reset(Pkg)
29+
30+
revdepcheck::revdep_check(Pkg, num_workers = 4)
31+
32+
#20.4. Update README.md and NEWS.md
33+
34+
#20.5. Submit to CRAN
35+
36+
library(devtools)
37+
spell_check(Pkg)
38+
39+
release(Pkg)
40+
41+
#20.6. Update the version number for the future
42+
#20.7. Publicise
43+
44+
#20.1. Pick a version number: in DESCRIPTION > what's on CRAN
45+
46+
#20.2. Run & document R CMD check
47+
# 2.1-0 because this is to match the move of
48+
# the database maintenance to wu.ut.at
49+
50+
#20.3. Check CRAN policies
51+
#20.4. Update README.md and NEWS.md
52+
#20.5. Submit to CRAN
53+
#20.6. Update the version number for the future
54+
#20.7. Publicise

0 commit comments

Comments
 (0)