Distances on Directed Graphs in R
at main 47 lines 1.6 kB view raw
1RFILE = README 2VIGNETTE = iso 3 4all: help 5 6doc: ## Update package documentation with `roxygen2` 7 Rscript -e 'roxygen2::roxygenise()' 8 9init: ## Initialize pkgdown site 10 echo "pkgdown::init_site()" | R --no-save -q 11 12pkgdown: ## Build entire pkgdown site 13 echo "pkgdown::build_site()" | R --no-save -q 14 15vignette: ## Build pkgdown article 16 echo "pkgdown::build_article('$(VIGNETTE)',quiet=FALSE)" | R --no-save -q 17 18knith: $(LFILE).Rmd ## Render README as HTML 19 echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q 20 21knitr: $(LFILE).Rmd ## Render README as markdown 22 echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).md')" | R --no-save -q 23 24open: ## Open main HTML vignette in browser 25 xdg-open docs/articles/$(VIGNETTE).html & 26 27allcon: ## Run 'allcontributors::add_contributors' 28 Rscript -e 'allcontributors::add_contributors(ncols = 6L, check_urls = FALSE)' 29 30check: ## Run `rcmdcheck` 31 Rscript -e 'rcmdcheck::rcmdcheck()' 32 33test: ## Run test suite 34 Rscript -e 'testthat::test_local()' 35 36pkgcheck: ## Run `pkgcheck` and print results to screen. 37 Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)' 38 39data: ## Run 'data-raw/release-data-script' to (re-)generate release data 40 date; time Rscript "data-raw/release-data-script.R" 41 42clean: ## Clean all junk files, including all pkgdown docs 43 rm -rf *.html *.png README_cache docs/ 44 45help: ## Show this help 46 @printf "Usage:\033[36m make [target]\033[0m\n" 47 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'