-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSOP_release.txt
88 lines (55 loc) · 2.59 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
###########################################################
# Standard operating procedures for `papeR' development #
###########################################################
Update ChangeLog
------------------
Go to root directory of project:
git log 809c532..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("car", "xtable", "nlme", "lme4", "survival", "gmodels", "knitr", "testthat", "foreign"))
Quit R and run
../relative/path/to/R-devel/bin/R CMD check --as-cran --run-donttest papeR_XXX.tar.gz
Making a release
----------------
Increase patch or minor level in DESCRIPTION
Update Date: field in DESCRIPTION
Update date and version in man/papeR-package.Rd
Update inst/NEWS.Rd
Update ChangeLog
R CMD build --resave-data --compact-vignettes . && R CMD check --as-cran --run-donttest papeR_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:
- Manually check differences. You might want to use something like:
cd papeR.Rcheck/tests
meld Examples/papeR-Ex.Rout.save ../papeR-Ex.Rout &
or
meld regtest-XXX.Rout.save regtest-XXX.Rout &
- If ok, 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"
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 (perhaps in future without test folder) to be submitted to CRAN
R CMD build --resave-data --compact-vignettes . && R CMD check --as-cran --run-donttest papeR_XXX.tar.gz
Run checks on WinBuilder:
upload package to http://win-builder.r-project.org/
Ftp source package to CRAN or use web form at http://xmpalantir.wu.ac.at/cransubmit/.
How to preview NEWS.Rd files
----------------------------
Create NEWS.Rd from plain text NEWS:
tools:::news2Rd("NEWS", "inst/NEWS.Rd")
For HTML preview:
R CMD Rdconv -t 'html' -o 'NEWS.html' NEWS.Rd && firefox NEWS.html
and for PDF preview:
R CMD Rd2pdf NEWS.Rd