Skip to content

Commit

Permalink
update makefile and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmayer committed Aug 13, 2024
1 parent a0e3369 commit 9950900
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ help:
@echo " coverage Generate coverage reports"
@echo " view-coverage View coverage report"
@echo " check Run R CMD check locally"
@echo " check Run R CMD on the winbuilder service from CRAN"
@echo " fix-style Auto style the code"
@echo " lint Check the code for lint"
@echo " spell Check spelling"
@echo " build Build the package"
@echo " vignettes Build vignettes"
@echo " readme Build readme"
@echo " check-win Run R CMD on the winbuilder service from CRAN"
@echo " check-rhub Run R CMD on the rhub service"
@echo " release Release to CRAN"
@echo " preview-site Preview pkgdown site"
@echo " dev-guide Open the R package development guide"
Expand Down Expand Up @@ -96,16 +97,6 @@ check:
Rscript -e "devtools::check(cran = FALSE, remote = TRUE, manual = TRUE, force_suggests = TRUE, error_on = 'note')"
Rscript -e "devtools::check(cran = TRUE , remote = TRUE, manual = TRUE, force_suggests = TRUE, error_on = 'note')"

.PHONY: check-win
check-win:
rm -rf lib/
Rscript -e "devtools:::check_win()"

.PHONY: check-rhub
check-rhub:
rm -rf lib/
Rscript -e "rhub::rhub_check()"

.PHONY: fix-style
fix-style:
Rscript -e "styler::style_pkg()"
Expand Down Expand Up @@ -144,6 +135,16 @@ preview-site:
Rscript -e "pkgdown::build_site()"
open docs/index.html

.PHONY: check-win
check-win:
rm -rf lib/
Rscript -e "devtools:::check_win()"

.PHONY: check-rhub
check-rhub:
rm -rf lib/
Rscript -e "rhub::rhub_check(platform='linux')"

.PHONY: release
release: check-rhub check-win
R --no-save --quiet --interactive
Expand Down
2 changes: 2 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* R CMD CHECK github actions: mac, windows (R-release)
* R CMD CHECK github actions: linux (R-release, R-devel, R-oldrelease)
* win-builder (R-release, R-devel, R-oldrelease)
* rhub (R-release, linux)
* reverse dependencies via revdepcheck

## R CMD check results
There were no ERRORs, WARNINGs, or NOTEs

0 comments on commit 9950900

Please sign in to comment.