-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease_script.R
executable file
·47 lines (35 loc) · 1.14 KB
/
release_script.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
# Steps/Commands to run before a release -----------------------------
## Check if version is appropriate
# http://shiny.andyteucher.ca/shinyapps/rver-deps/
## Internal data files
source("data-raw/create_data.R")
## Checks
devtools::check() # Local
devtools::check_win_release() # Win builder
devtools::check_win_devel()
devtools::check_win_oldrelease()
devtools::check_rhub() # windows/linux/macos
devtools::check_rhub(platforms = "windows-x86_64-devel")
## Run in console
system("cd ..; R CMD build cavityuse")
system(paste0("cd ..; R CMD check cavityuse_",
packageVersion("cavityuse"),
".tar.gz --as-cran"))
## Update codemeta
codemetar::write_codemeta()
codemetar::give_opinions()
## Documentation
# Update NEWS
# Update cran-comments
# Check spelling
dict <- hunspell::dictionary('en_CA')
spelling::spell_check_package(use_wordlist = TRUE)
## Push to github
## Check travis / appveyor
## Update website
## Push to github
## Actually release it (SEND TO CRAN!)
devtools::release()
## Once it is released (Accepted by CRAN) create signed release on github
#system("git tag -s v 0.2.7 -m 'v0.2.7'")
#system("git push --tags")