-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrelease-process.R
41 lines (35 loc) · 1.38 KB
/
release-process.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
# ensure version is correct, then:
# run line by line (some commands require command line input)
devtools::check_win_devel()
devtools::check_win_release()
devtools::check_mac_release()
devtools::check()
devtools::spell_check()
revdepcheck::revdep_check()
# make sure you've put comments in cran-comments.md
# install the new version
# IF YOU WANT TO KEEP WEBSITE ON THE CRAN VERSION:
# do this on branch website-x.y.z. Then you can commit and push changes without
# devtools complaining about uncommitted changes.
# OTHERWISE, JUST DO THIS ON MASTER
pkgdown::build_site()
my_home <- "~/hughjonesd.github.io/"
rmarkdown::render("vignettes/tutorials/visual-introduction.Rmd",
output_dir = my_home)
file.copy("vignettes/tutorials/chopping-dates-with-santoku.Rmd", my_home,
overwrite = TRUE)
file.copy("vignettes/tutorials/figures", my_home, recursive = TRUE)
withr::with_dir(my_home,
rmarkdown::render("chopping-dates-with-santoku.Rmd")
)
# but don't push yet! it affects what is seen from the website...
# NB you may need to update the README on master, as this is part
# of the package.
# Now back to master:
devtools::release()
# when it's accepted:
# - merge website-x.y.z into master
# - push hughjonesd.github.io
# - git tag -a -m "Version x.y.z successfully submitted to CRAN" cran-x.y.z
# - git push --tags
# - create a "release" on github with title x.y.z to update r-universe