-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (54 loc) · 1.57 KB
/
Makefile
File metadata and controls
74 lines (54 loc) · 1.57 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# load.R fixes a bug with devtool's `help` to enable `help` on
# functions in this package, as well as loading the package
LOAD=R_PROFILE=load.R
RCMD=R -q -e
.PHONY:interactive
interactive:
@$(LOAD) R -q --no-save
.PHONY:interactive-emacs
interactive-emacs:
@$(LOAD) emacs -nw -f R
.PHONY:.devtools
.devtools:
@$(RCMD) "devtools:::$(FUNC)($(DEVTOOLSARG))"
DEVTOOLSARG=
.PHONY:dependencies
dependencies: FUNC=install_deps
dependencies: DEVTOOLSARG=dependencies=TRUE
.PHONY:test
test: FUNC=test
.PHONY:check
check: FUNC=check
.PHONY:document
document: FUNC=document
.PHONY:coverage
coverage:
@$(RCMD) "covr::report(file = 'coverage.html', browse = TRUE)"
.PHONY:goodpractice
goodpractice:
@$(RCMD) "goodpractice::gp('.')"
.PHONY:vignette
vignette: FUNC=build_vignettes
.PHONY:clean-vignette
clean-vignette: FUNC=clean_vignettes
.PHONY:build
build: FUNC=build
.PHONY:check_win_old
check_win_old: FUNC=check_win_oldrelease # Check & build on win-builder old release
.PHONY:check_win
check_win: FUNC=check_win_release # ... on win-builder release
.PHONY:check_win_dev
check_win_dev: FUNC=check_win_devel # ... on win-builder dev
.PHONY:check_rhub
check_rhub: FUNC=check_rhub
check_rhub: DEVTOOLSARG=interactive=FALSE
.PHONY:build_site
build_site: document
@$(RCMD) "devtools:::build_site(quiet=FALSE)"
dependencies test check document vignette clean-vignette build check_win check_win_dev check_win_old check_rhub: .devtools
.PHONY:clean
clean: clean-vignette
git clean -Xfd
.PHONY:spell-check-DESCRIPTION
spell-check-DESCRIPTION:
aspell -c DESCRIPTION --personal=NULL