-
Notifications
You must be signed in to change notification settings - Fork 6
/
RELEASE.R
54 lines (42 loc) · 1.22 KB
/
RELEASE.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
# Check spelling
dict <- hunspell::dictionary('en_CA')
devtools::spell_check()
spelling::update_wordlist()
# Compile README.md using latest version of package
# devtools::build_readme()
# Check/update URLS
urlchecker::url_check()
# local checks
# devtools::document()
devtools::check()
# multi-arch checks
library(rhub)
#validate_email("[email protected]")
platforms()
f <- c("debian-gcc-devel",
"debian-gcc-release",
# "macos-highsierra-release-cran",
"windows-x86_64-devel",
"windows-x86_64-release",
"windows-x86_64-oldrel")
check(platform=f)
list_package_checks(".")
# build package to submit
devtools::build()
pkgnews <- function() {
x <- readLines("NEWS.md")
x <- x[x != ""]
h <- which(startsWith(x, "#"))
i <- (h[1]+1):(h[2]-1)
paste0(x[i], collapse="\n")
}
cat(sprintf('Dear CRAN Maintainers,
I am submitting the %s version of the pbapply R extension package to CRAN.
The package passed R CMD check --as-cran without errors/warnings/notes on the following platforms: %s.
I made the following changes since the last release:
%s
Yours,
Peter Solymos
maintainer', read.dcf("DESCRIPTION", fields="Version")[1],
paste0(f, collapse=", "),
pkgnews()))