diff options
| author | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2025-10-22 15:50:07 +0200 |
|---|---|---|
| committer | Ranke Johannes <johannes.ranke@agroscope.admin.ch> | 2025-10-22 15:50:07 +0200 |
| commit | e23bd3cfdaf3211c8ed63219e23204697108cb38 (patch) | |
| tree | aafab511ea9eeaa6d92987bda1ae8ce2e3f595bf /GNUmakefile | |
| parent | adc69bd4e1543a229fbee543940f8b92fd499682 (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-- | GNUmakefile | 13 |
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 |
