-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
94 lines (69 loc) · 2.9 KB
/
Makefile
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
89
90
91
92
93
94
all: initc docs test check
initc:
R --slave -e "Rcpp::compileAttributes()"
R --slave -e "tools::package_native_routine_registration_skeleton('.', 'src/init.c', character_only = FALSE)"
conf:
autoconf
docs: man readme vigns
data:
Rscript --slave inst/extdata/simulate_data.R
readme:
R --slave -e "rmarkdown::render('README.Rmd')"
man:
R --slave -e "devtools::document()"
vigns:
rm -f doc/*.html
rm -f vignettes/*.html
rm -f inst/doc/*.html
R --slave -e "options(rmarkdown.html_vignette.check_title = FALSE);devtools::build_vignettes(install = FALSE)"
rm -f vignettes/*.utf8.md
rm -f vignettes/*.md
cp -Rf doc inst/
purl_vigns:
R --slave -e "lapply(dir('vignettes', '^.*\\\\.Rmd$$'), function(x) knitr::purl(file.path('vignettes', x), gsub('.Rmd', '.R', x, fixed = TRUE)))"
vign_seed:
R --slave -e "source('inst/extdata/find_vignette_seed.R')"
quicksite:
R --slave -e "options(rmarkdown.html_vignette.check_title = FALSE);pkgdown::build_site(run_dont_run = TRUE, lazy = TRUE)"
cp -Rf doc inst/
site:
R --slave -e "pkgdown::clean_site()"
R --slave -e "options(rmarkdown.html_vignette.check_title = FALSE);pkgdown::build_site(run_dont_run = TRUE, lazy = TRUE)"
cp -Rf doc inst/
test:
R --slave -e "devtools::test()" > test.log 2>&1
rm -f tests/testthat/Rplots.pdf
quickcheck:
echo "\n===== R CMD CHECK =====\n" > check.log 2>&1
R --slave -e "devtools::check(build_args = '--no-build-vignettes', args = '--no-build-vignettes', run_dont_test = TRUE, vignettes = FALSE)" >> check.log 2>&1se
cp -Rf doc inst/
check:
echo "\n===== R CMD CHECK =====\n" > check.log 2>&1
R --slave -e "devtools::check(build_args = '--no-build-vignettes', args = '--no-build-vignettes', run_dont_test = TRUE, vignettes = FALSE)" >> check.log 2>&1
cp -Rf doc inst/
build:
R --slave -e "devtools::build()"
cp -R doc inst/
install:
R --slave -e "devtools::install_local('.', force = TRUE, upgrade = 'never')"
examples:
rm -f examples.log
R --slave -e "devtools::run_examples(run_donttest = TRUE, run_dontrun = TRUE);warnings()" >> examples.log
rm -f Rplots.pdf
wbcheck:
R --slave -e "devtools::check_win_devel()"
cp -Rf doc inst/
maccheck:
R --slave -e "devtools::check_mac_release()"
cp -Rf doc inst/
urlcheck:
R --slave -e "devtools::document();urlchecker::url_check()"
spellcheck:
R --slave -e "devtools::document();devtools::spell_check()"
solarischeck:
R --slave -e "rhub::check(platform = 'solaris-x86-patched', email = '[email protected]', show_status = FALSE)"
sancheck:
R --slave -e "rhub::check(platform = 'linux-x86_64-rocker-gcc-san', email = '[email protected]', show_status = FALSE)"
vgcheck:
R --slave -e "rhub::check(platform = 'ubuntu-gcc-devel', valgrind = TRUE, email = '[email protected]', show_status = FALSE)"
.PHONY: initc docs data site test check checkwb build install man readme vigns site quicksite benchmark examples solarischeck wbcheck sancheck vgcheck conf