forked from friendly/vcdExtra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.build-steps.R
39 lines (28 loc) · 1004 Bytes
/
.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
# keep rgl from popping up windows
Sys.setenv(RGL_USE_NULL = TRUE)
#it is necessary to build manually, using
#Sys.setenv(R_GSCMD="C:/Program Files/gs/gs9.21/bin/gswin64c.exe")
Sys.setenv(R_GSCMD="C:/Program Files/gs/gs9.53.3/bin/gswin64c.exe")
# Build the pkgdown site
pkgdown::build_site()
# Check package
devtools::check()
devtools::check_win_release()
devtools::check_win_devel()
devtools::check_rhub()
args = c('--resave-data','--compact-vignettes=both')
devtools::build(args = args)
# then, test with win builder
devtools::check_win_devel(args=args)
devtools::check_rhub()
# reverse dependencies
devtools::revdep()
# [1] "aplore3" "catdata" "gnm" "iarm" "jmv"
if (!require("revdepcheck")) remotes::install_github("r-lib/revdepcheck")
revdepcheck::revdep_check(num_workers = 4)
# submit to cran
devtools::release(args=args)
# Warning: 'inst/doc' file
# 'vcd-tutorial.pdf'
# ignored as vignettes have been rebuilt.
# Run R CMD build with --no-build-vignettes to prevent rebuilding.