summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 04365c9..5c52c5b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -7,6 +7,9 @@ RBIN ?= $(shell dirname "`which R`")
all: install
+README.md: README.rmd
+ Rscript -e "rmarkdown::render('README.rmd', output_format = 'github_document', output_options = list(html_preview = FALSE))"
+
pkgfiles = DESCRIPTION \
.Rbuildignore \
DESCRIPTION \
@@ -26,13 +29,16 @@ $(TGZ): $(pkgfiles)
"$(RBIN)/R" CMD build . 2>&1 | tee log/build.log
pd: roxy
- "$(RBIN)/Rscript" -e 'pkgdown::build_site()'
+ "$(RBIN)/Rscript" -e "pkgdown::build_site(run_dont_run = TRUE, lazy = TRUE)"
+
+pd_all: roxy
+ "$(RBIN)/Rscript" -e "pkgdown::build_site(run_dont_run = TRUE)"
build: roxy $(TGZ)
test: build
"$(RBIN)/Rscript" -e 'library(devtools); devtools::test()' 2>&1 | tee log/test.log
- sed -i -e "s/\r.*\r//" test.log
+ sed -i -e "s/\r.*\r//" log/test.log
quickcheck: build
_R_CHECK_CRAN_INCOMING_REMOTE_=false "$(RBIN)/R" CMD check $(TGZ) --no-tests
@@ -41,7 +47,7 @@ check: roxy build
_R_CHECK_CRAN_INCOMING_REMOTE_=false "$(RBIN)/R" CMD check --as-cran --no-tests $(TGZ) 2>&1 | tee log/check.log
install: build
- "$(R_HOME)/bin/R" CMD INSTALL --no-multiarch $(TGZ)
+ "$(RBIN)/R" CMD INSTALL --no-multiarch $(TGZ)
winbuilder: build
date
@@ -50,4 +56,7 @@ winbuilder: build
@echo "Uploading to R-devel on win-builder"
curl -T $(TGZ) ftp://anonymous@win-builder.r-project.org/R-devel/
-.PHONEY: roxy pd test quickcheck check install winbuilder
+coverage:
+ "$(RBIN)/Rscript" -e "covr::report(file = 'docs/coverage/coverage.html')"
+
+.PHONEY: roxy pd test quickcheck check install winbuilder coverage

Contact - Imprint