forked from SteveLane/superNetballR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 714 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (21 loc) · 714 Bytes
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
# Makefile
.PHONY: all build check checking clean document install site test winbuild
PKG_TARBALL := $(shell Rscript -e "desc <- read.dcf('DESCRIPTION')[1, ]; cat(sprintf('%s_%s.tar.gz', desc[['Package']], desc[['Version']]))")
all: document test check install
checking: document test check
document:
Rscript -e "roxygen2::roxygenise()"
build:
R CMD build .
test:
Rscript -e "testthat::test_local('.', reporter = 'summary', stop_on_failure = TRUE)"
check: build
R CMD check --no-manual --as-cran $(PKG_TARBALL)
install:
R CMD INSTALL .
winbuild:
@echo "Use the GitHub Actions R-CMD-check workflow for Windows validation."
site:
Rscript -e "pkgdown::build_site()"
clean:
rm -rf *.tar.gz *.Rcheck