-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathReleaseBlurbs.R
29 lines (29 loc) · 950 Bytes
/
ReleaseBlurbs.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
## Produce texts at release time
db <- as.list(read.dcf("~/R-release/VERSION-INFO.dcf")[1,])
options(useFancyQuotes = FALSE)
with(db, {
Oldseries <- paste(sep="",
"R-", gsub("[0-9]*$", "x", `Old-release`))
cat(sep="",
"Version ", Release,
" (", dQuote(Nickname), ")",
" was released on ", Date, ".",
"\n<p>\n",
"The wrap-up release of the ", Oldseries,
" series was ", `Old-release`,
" (", dQuote(`Old-nick`), ")",
" on ", `Old-date`, ".\n"
)
if (`Next-release` == "") ## do something about the else branch later...
cat(sep="",
"\n<p>\n",
"The date for the next release is not yet set.",
"\n<p>\n"
)
## Markdown blurb for md/index.md in R-project-web
cat(sep="",
"- [**R version ", Release, " (", Nickname, ")**]",
"(https://cran.r-project.org/src/base/R-4)\n",
" has been released on ", Date, ".\n")
}
)