forked from boost-R/gamboostLSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SOP_release.txt
95 lines (62 loc) · 3.05 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#################################################################
# Standard operating procedures for `gamboostLSS' development #
#################################################################
Update ChangeLog
------------------
Go to patch/pkg directory of project:
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
Removing cvrisk results to reduce package size
----------------------------------------------
1) Add eval = FALSE to chunks <<cvrisk>>, <<load_cvrisk>>, <<crossvalidation>>,
<<check_initial_assignement>> and <<subset>>
2) Add \includegraphics{fig-crossvalidation.pdf} after chunk <<crossvalidation>>
3) Replace chunk <<mstop>> with
\begin{Sinput}
R> mstop(cvr)
mu sigma
1269 84
\end{Sinput}
Making a release
----------------
Increase patch or minor level in DESCRIPTION
Update Date: field in DESCRIPTION
Update NEWS
R CMD build --resave-data --compact-vignettes [[pkg OR patch]] &&
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 "path='pkg'" "vignettes=FALSE"
or
Rscript copy_Rout_to_Routsave.R "path='patch'" "vignettes=FALSE"
- Update vignette .Rout.save files if necessary [1,2]:
Rscript copy_Rout_to_Routsave.R "path='pkg'" "vignettes=TRUE"
or
Rscript copy_Rout_to_Routsave.R "path='patch'" "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)
Now build package without test folder to be submitted to CRAN
R CMD buildCRAN --resave-data --compact-vignettes pkg && R CMD check --as-cran gamboostLSS_XXX.tar.gz
or
R CMD buildCRAN --resave-data --compact-vignettes patch && R CMD check --as-cran gamboostLSS_XXX.tar.gz
To use the script copy it to R RHOME (< enter this in the console) /bin and make it executable.
Use web form at http://xmpalantir.wu.ac.at/cransubmit/.