-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 821 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 821 Bytes
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
35
.PHONY: help check test coverage doc build install clean
help:
@echo "Available commands:"
@echo " make check - Run R CMD check"
@echo " make test - Run tests"
@echo " make coverage - Check code coverage"
@echo " make doc - Generate documentation"
@echo " make build - Build package"
@echo " make install - Install package locally"
@echo " make clean - Clean build artifacts"
check:
R CMD check .
test:
Rscript -e "devtools::test()"
coverage:
@echo "Running code coverage analysis..."
Rscript -e "cov <- covr::package_coverage(quiet = FALSE); print(cov); cat('Coverage: ', covr::percent_coverage(cov), '%\n')"
doc:
Rscript -e "devtools::document()"
build:
R CMD build .
install:
Rscript -e "devtools::install()"
clean:
rm -f *.tar.gz
rm -rf guess.Rcheck
rm -f .Rhistory