-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (26 loc) · 970 Bytes
/
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
# Export user login details, used for testing
test:
make install
Rscript -e "library('foehnix'); testthat::test_dir('tests/testthat')"
# testing md5 idea
md5:
make install
Rscript -e "library('foehnix'); testthat::test_file('tests/testthat/test-md5.R')"
Rscript -e "library('foehnix'); testthat::test_file('tests/testthat/test-results.R')"
# Code coverage and report.
# Requires 'covr' to be installed. Saves the coverage summary to '_coverage.rds'.
coverage:
##make install &&
Rscript -e "library('covr'); x <- package_coverage(); saveRDS(x, file = '_coverage.rds'); report(x)"
#Rscript -e "devtools::test_coverage(show_report = TRUE)"
# Build site, create documentation.
doc:
make install && \
Rscript -e "pkgdown::build_site()"
# Package check
check:
make install && Rscript -e "devtools::check()"
#install: SHELL:=/bin/bash
install:
Rscript -e "devtools::load_all(); devtools::document()" && \
Rscript -e "devtools::install(upgrade = 'always')"