-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (36 loc) · 1.1 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
all: clean docs test check
clean:
rm -rf man/*
rm -rf docs/*
rm -rf inst/doc/*
data:
R --slave -e "source('inst/extdata/data.R')"
docs: readme man site
man:
R --slave -e "devtools::document()"
readme:
R --slave -e "rmarkdown::render('README.Rmd')"
site:
R --slave -e "pkgdown::build_site(run_dont_run = TRUE)"
quicksite:
R --slave -e "pkgdown::build_site(run_dont_run = TRUE, lazy = TRUE)"
test:
R --slave -e "devtools::test()" > test.log 2>&1
rm -f tests/testthat/Rplots.pdf
check:
echo "\n===== R CMD CHECK =====\n" > check.log 2>&1
R --slave -e "devtools::check()" >> check.log 2>&1
spellcheck:
echo "\n===== SPELL CHECK =====\n" > spell.log 2>&1
R --slave -e "devtools::spell_check()" >> spell.log 2>&1
wbcheck:
R --slave -e "devtools::check_win_devel()"
jhwbcheck:
R --slave -e "devtools::check_win_devel(email = '[email protected]')"
build:
R --slave -e "devtools::build()"
install:
R --slave -e "devtools::install_local(force = TRUE)"
urlcheck:
R --slave -e "devtools::document();urlchecker::url_check()"
.PHONY: data docs readme site test check checkwb build install man