summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRanke Johannes <johannes.ranke@agroscope.admin.ch>2025-10-22 15:50:07 +0200
committerRanke Johannes <johannes.ranke@agroscope.admin.ch>2025-10-22 15:50:07 +0200
commite23bd3cfdaf3211c8ed63219e23204697108cb38 (patch)
treeaafab511ea9eeaa6d92987bda1ae8ce2e3f595bf /GNUmakefile
parentadc69bd4e1543a229fbee543940f8b92fd499682 (diff)
Improve messages and README
Use README.rmd in order to be able to include demo code and output in the README.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6bbb53f..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,7 +29,10 @@ $(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)
@@ -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