-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.build-steps.R
65 lines (50 loc) · 1.58 KB
/
.build-steps.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# keep rgl from popping up windows
Sys.setenv(RGL_USE_NULL = TRUE)
# revdep
#remotes::install_github("r-lib/revdepcheck")
#library(revdepcheck)
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
# get list of possibly misspelled words
wds <- spelling::spell_check_package() |> print()
cat(paste(wds[, "word"], collapse = "\n"))
# to add all words
spelling::update_wordlist()
library(devtools)
# prepare pkgdown site
devtools::build_readme()
pkgdown::build_site()
devtools::build()
# to test vignettes, built them, but then have to remove `doc/` directory
devtools::build_vignettes()
# create the manual
devtools::build_manual()
devtools::check_win_devel()
# check reverse dependencies
devtools::revdep()
# [1] "candisc" "effects" "Guerry" "HistData" "ICSClust" "latentnet"
# [7] "MorphoTools2" "mvinfluence" "ordr"
library(revdepcheck)
revdep_reset()
revdep_check()
# -> Results to cran-comments.md
# submit to cran
devtools::release()
# no longer need this
# devtools::build(args = c('--resave-data','--compact-vignettes=both'))
#
# #devtools::build(args = c('--compact-vignettes=both'))
#
# # then, test with win builder
# args = c('--resave-data','--compact-vignettes=both')
# devtools::check_win_devel(args=args)
# # submit to cran
# args = c('--resave-data','--compact-vignettes=both')
# #devtools::submit_cran(args=args)
# devtools::release(args=args)
#
# # NB: building vignettes, then compacting
# devtools::build_vignettes()
#
# tools::compactPDF("doc/HE-examples.pdf", gs_quality="ebook")
# # compacted ‘HE-examples.pdf’ from 765Kb to 415Kb