From e23bd3cfdaf3211c8ed63219e23204697108cb38 Mon Sep 17 00:00:00 2001 From: Ranke Johannes Date: Wed, 22 Oct 2025 15:50:07 +0200 Subject: Improve messages and README Use README.rmd in order to be able to include demo code and output in the README. --- GNUmakefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') 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 -- cgit v1.2.3