md:
	Rscript -e "rmarkdown::render('README.Rmd', output_file = 'README.md')"

site:
	Rscript -e "rmarkdown::render('README.Rmd', output_file = 'README.md')"
	Rscript -e "pkgdown::build_site()"

check:
	Rscript -e "devtools::check(run_dont_test = TRUE)"

checkfast:
	Rscript -e "devtools::check(build_args = '--no-build-vignettes')"

test:
	Rscript -e "devtools::test()"

doc:
	Rscript -e "devtools::document(); Rcpp::compileAttributes(); devtools::document()"

build:
	Rscript -e "devtools::build()"

buildfast:
	Rscript -e "devtools::build(vignettes = FALSE)"

style:
	Rscript -e "styler::style_pkg()"

pr: style doc check site
	echo "If all checks have passed, you are ready to submit a new PR."
