-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.build-steps.R
More file actions
52 lines (37 loc) · 1.19 KB
/
.build-steps.R
File metadata and controls
52 lines (37 loc) · 1.19 KB
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
# keep rgl from popping up windows
Sys.setenv(RGL_USE_NULL = TRUE)
# devtools::build_vignettes()
# remotes::install_local(".", build_vignettes = TRUE, force=TRUE)
#
# The README.Rmd references the vignettes, so they must be installed
devtools::install(build_vignettes = TRUE)
# Build the pkgdown site
# NB: Now handled in .github/workflows/pkgdown.yml
pkgdown::build_site()
# to copy the vignettes to `inst/doc`:
tools::buildVignettes(dir = ".", tangle=TRUE)
dir.create("inst/doc")
file.copy(dir("vignettes", full.names=TRUE), "inst/doc", overwrite=TRUE)
# Check package
devtools::check()
devtools::check_win_release()
devtools::check_win_devel()
devtools::check_rhub()
#args = c('--resave-data','--compact-vignettes=both')
devtools::build()
# then, test with win builder
devtools::check_win_devel()
devtools::check_rhub()
# spellcheck
(words <- devtools::spell_check())
words$word
# reverse dependencies
devtools::revdep()
# [1] "aplore3" "catdata" "gnm" "iarm" "jmv"
if (!require("revdepcheck")) remotes::install_github("r-lib/revdepcheck")
revdepcheck::revdep_reset()
revdepcheck::revdep_check(num_workers = 4)
# build the pkgdown site
pkgdown::build_site()
# submit to cran
devtools::release()