-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSOP_release.txt
77 lines (49 loc) · 2.68 KB
/
SOP_release.txt
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#################################################################
# Standard operating procedures for `gamboostLSS' development #
#################################################################
Update ChangeLog
------------------
git log abba..HEAD --pretty=short > ChangeLog
Checking the package with latest development verstion of R
----------------------------------------------------------
Get source from
ftp://ftp.stat.math.ethz.ch/Software/R/
UnTar and install according to guide in INSTALL (source directory).
Go to gamboostLSS directory and call
../relative/path/to/R-devel/bin/R
Run
install.packages(c("gamlss", "gamlss.dist", "mboost", "BayesX", "R2BayesX"))
Quit R and run
../relative/path/to/R-devel/bin/R CMD check --as-cran --run-dontrun --run-donttest gamboostLSS_XXX.tar.gz
Making a release
----------------
Increase patch or minor level in DESCRIPTION
Update Date: field in DESCRIPTION
Update inst/NEWS.Rd
R CMD build --resave-data --compact-vignettes="gs+qpdf" gamboostLSS &&
R CMD check --as-cran --run-dontrun --run-donttest gamboostLSS_XXX.tar.gz
Run check with R-devel
(see section "Checking the package with latest development version of R")
If differences to .Rout.save occure:
- Copy new .Rout files to .Rout.save [1,2]:
Rscript copy_Rout_to_Routsave.R "vignettes=FALSE"
- Update vignette .Rout.save files if necessary [1,2]:
Rscript copy_Rout_to_Routsave.R "vignettes=TRUE"
[1] For details see
http://r.789695.n4.nabble.com/Generate-Rout-save-files-for-vignettes-td4652752.html
[2] NOTE: Reference output should be produced without having the --timings option set.
- Now check for differences, e.g. using "git diff" or "meld"
Run checks on WinBuilder:
upload package to http://win-builder.r-project.org/
Gives no warnings / errors.
Commit changes
Update ChangeLog (see above) and amend previous commit
Remove cvrisk results to reduce package size (see above) but do NOT COMMIT these changes to github.
Now build package without test folder to be submitted to CRAN
Therefore, do the following:
mv vignettes/gamboostLSS_Tutorial_CRAN.Rnw vignettes/gamboostLSS_Tutorial.Rnw
mv .RbuildignoreCRAN .Rbuildignore
cd ..
R CMD build --resave-data --compact-vignettes="gs+qpdf" gamboostLSS && R CMD check --as-cran --run-donttest gamboostLSS_XXX.tar.gz
git checkout -- .RbuildignoreCRAN .Rbuildignore vignettes/gamboostLSS_Tutorial_CRAN.Rnw vignettes/gamboostLSS_Tutorial.Rnw
Use web form at http://xmpalantir.wu.ac.at/cransubmit/.