Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,50 @@
format: format-r

format-r:
@echo "==> R: Formatting rtemis.draw"
@echo "==> R: Formatting rtemis.llm"
cd r && air format .

# ── Document ─────────────────────────────────────────────────────────────────
document: document-r

document-r: format-r
@echo "=> R: Documenting rtemis.draw"
@echo "=> R: Documenting rtemis.llm"
cd r && Rscript -e "devtools::document()"

# ── Document & Install ───────────────────────────────────────────────────────
install: install-r

install-r: document-r
@echo "==> R: Installing rtemis.draw"
@echo "==> R: Installing rtemis.llm"
cd r && Rscript -e "devtools::install()"

# ── Test ─────────────────────────────────────────────────────────────────────
test: test-r

test-r:
@echo "==> R: Testing rtemis.draw"
@echo "==> R: Testing rtemis.llm"
cd r && Rscript -e "devtools::test(stop_on_failure = TRUE)"

# ── URL Check ────────────────────────────────────────────────────────────────
url-check-r:
@echo "==> R: Checking URLs in rtemis.draw"
@echo "==> R: Checking URLs in rtemis.llm"
cd r && Rscript -e "urlchecker::url_check()"

# ── Check ────────────────────────────────────────────────────────────────────
check: check-r

check-r:
@echo "==> R: Checking rtemis.draw"
@echo "==> R: Checking rtemis.llm"
cd r && R CMD build . && R CMD check rtemis.llm_*.tar.gz --as-cran && rm rtemis.llm_*.tar.gz

# ── Build Site ───────────────────────────────────────────────────────────────
site: site-r

site-r:
@echo "==> R: Building pkgdown site for rtemis.draw"
@echo "==> R: Building pkgdown site for rtemis.llm"
cd r && Rscript -e "pkgdown::build_site()"

# ── Build ────────────────────────────────────────────────────────────────────
build-r:
@echo "==> R: Building rtemis.draw"
@echo "==> R: Building rtemis.llm"
cd r && R CMD build .
Loading
Loading