-
Notifications
You must be signed in to change notification settings - Fork 9
/
SOP_release.txt
73 lines (45 loc) · 2.22 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
###########################################################
# Standard operating procedures for `stabs' development #
###########################################################
Update ChangeLog
------------------
Go to root directory of project:
git log 809c..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 mboost directory and call
../relative/path/to/R-devel/bin/R
Run
install.packages(c("parallel", "TH.data", "hdi", "glmnet", "lars", "mboost",
"gamboostLSS", "testthat", "knitr", "rmarkdown"))
Quit R and run
../relative/path/to/R-devel/bin/R CMD check --as-cran stabs_XXX.tar.gz
Making a release
----------------
Increase patch or minor level in DESCRIPTION
Update Date: field in DESCRIPTION
Update inst/NEWS.Rd
Update ChangeLog
Update README (especially Citation)
R CMD build --resave-data --compact-vignettes . && R CMD check --as-cran stabs_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:
Rscript copy_Rout_to_Routsave.R "vignettes=FALSE"
- Update vignette .Rout.save files if necessary
Rscript copy_Rout_to_Routsave.R "vignettes=TRUE"
Check differences manually. If ok commit to github, otherwise revert changes (see comment in script).
For details see
http://r.789695.n4.nabble.com/Generate-Rout-save-files-for-vignettes-td4652752.html
Gives no warnings / errors.
Commit changes
Now build package without test folder to be submitted to CRAN
mv .RbuildignoreCRAN .Rbuildignore
cd ..
R CMD build --resave-data --compact-vignettes="gs+qpdf" stabs && R CMD check --as-cran --run-donttest stabs_XXX.tar.gz
git checkout -- .RbuildignoreCRAN .Rbuildignore
Ftp source package to CRAN or use web form at http://xmpalantir.wu.ac.at/cransubmit/.