-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile
34 lines (24 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: help testall testone document documentrich check install buildsite deploysite buildpdf
help: ## Display this help screen
@echo -e "\033[1mAvailable commands:\033[0m\n"
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort
testall: ## tinytest::build_install_test()
Rscript -e "tinytest::build_install_test(ncpu = 8)"
testone: ## make testone testfile="inst/tinytest/test-aaa-warn_once.R"
Rscript -e "pkgload::load_all();tinytest::run_test_file('$(testfile)')"
document: ## devtools::document()
Rscript -e "devtools::document()"
check: document ## devtools::check()
Rscript -e "devtools::check()"
install: document ## devtools::install()
# R CMD INSTALL .
Rscript -e "devtools::install(dependencies = FALSE)"
deps: ## install dependencies
Rscript -e "devtools::install(dependencies = TRUE)"
deploy: ## pkgdown::deploy_to_branch()
Rscript -e "pkgdown::deploy_to_branch()"
website: install ## render vignettes and website
Rscript -e "altdoc::render_docs(verbose = TRUE)"
rm -rf _quarto
buildpdf: document ## document + R CMD Rd2pdf .
R CMD Rd2pdf .