-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 792 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (28 loc) · 792 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
33
34
35
36
NAME = $(shell grep 'Package:' DESCRIPTION | cut -d ' ' -f2)
VER = $(shell grep 'Version:' DESCRIPTION | cut -d ' ' -f2)
install:
R CMD INSTALL .
build:
cd ..; R CMD build $(NAME)
check:
make build
cd ..; R CMD check $(NAME)_$(VER).tar.gz
cran-check:
make build
cd ..; R CMD check --as-cran $(NAME)_$(VER).tar.gz
test:
make install
Rscript -e "Sys.setenv("AT_HOME" = "TRUE"); tinytest::test_package('jagsUI', color=FALSE, verbose=0)"
coverage:
make install
Rscript -e 'Sys.setenv("AT_HOME" = "TRUE"); covr::report(file="/tmp/jagsUI-report.html")'
firefox /tmp/jagsUI-report.html
site:
Rscript -e "pkgdown::build_site()"
firefox docs/index.html
README:
Rscript -e "knitr::knit('README.Rmd')"
pandoc README.md -o README.html
firefox README.html
sleep 3
rm README.html