-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build_utils.R
44 lines (33 loc) · 1.3 KB
/
Build_utils.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# TODO ------------------------------------
# coefficient names
# intercept check
# -----------------------------------------
# Build mannual
roxygen2::roxygenize('.', roclets=c('rd', 'collate', 'namespace', 'vignette'));
outpath = paste(dirname(getwd()), "/doc/ncpen.pdf", sep = "");
if(file.exists(outpath)) file.remove(outpath);
system(paste("R CMD Rd2pdf -o ", outpath, " .", sep = ""));
# To resolve dll registration warnings. -------------------------------
# tools::package_native_routine_registration_skeleton(".");
# This generates codes for init.c.
# Run it and copy & paste to init.c
tools::package_native_routine_registration_skeleton(".", character_only = FALSE)
# To use Travis ----------------------------
devtools::use_travis();
# R CMD check
#devtools::check();
devtools::check(args = c("--use-valgrind"));
devtools::spell_check();
devtools::check_rhub();
devtools::check_win_devel();
#devtools::build_win();
# Release
# submit cran with working through chekcing questions.
devtools::release();
#################################
#- Final submit
# submit cran without working through chekcing questions.
# devtools::submit_cran();
#################################
#install.packages(c("cli", "digest", "glue", "mime", "openssl", "R6", "Rcpp", "rstudioapi"));
#install.packages("roxygen2", "spelling");