-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·76 lines (57 loc) · 1.25 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
SHELL := /bin/bash
PACKAGE=pmplots
VERSION=$(shell grep Version DESCRIPTION |awk '{print $$2}')
TARBALL=${PACKAGE}_${VERSION}.tar.gz
PKGDIR=.
CHKDIR=.
testn:
Rscript inst/validation/latest.R
covr:
Rscript inst/script/covr.R
everyfun:
Rscript -e 'rmarkdown::render("inst/examples/pmplots_complete.Rmd")'
examples:
make everyfun
make readme
make exampler
pkgdown:
Rscript -e "options(pkdown.internet = FALSE); pkgdown::build_site()"
all:
make doc
make build
make install
package:
make doc
make build-vignettes
make install
spelling:
Rscript -e "spelling::spell_check_package()"
bump-dev:
Rscript -e 'usethis::use_version("dev")'
tag-version:
git tag $(VERSION)
git push origin $(VERSION)
test:
make install
Rscript -e 'testthat:::test_dir("tests")'
.PHONY: doc
doc:
Rscript inst/script/document.R
build:
R CMD build --no-build-vignettes --md5 $(PKGDIR)
build-vignettes:
R CMD build --md5 $(PKGDIR)
install:
R CMD INSTALL --install-tests ${TARBALL}
install-build:
R CMD INSTALL --build --install-tests ${TARBALL}
check:
make doc
make build
R CMD check --ignore-vignettes ${TARBALL} -o ${CHKDIR}
check-package:
make doc
make build-vignettes
R CMD check ${TARBALL} -o ${CHKDIR}
readme:
Rscript -e 'rmarkdown::render("README.Rmd")'