Skip to content

Commit

Permalink
Updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Aug 30, 2024
1 parent bb3891c commit 4c74763
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,43 @@ PKG_NAME=$(shell grep -i ^package DESCRIPTION | cut -d : -d \ -f 2)

default: build

check:
Rscript -e "rcmdcheck::rcmdcheck()"

build:
-rm -f rstudio
-Rscript -e "devtools::build(args = c('--compact-vignettes=both'))"
Rscript -e "devtools::build(args = c('--compact-vignettes=both'))"

install:
R CMD INSTALL .
check:
Rscript -e "rcmdcheck::rcmdcheck()"

clean:
-rm -f ../$(PKG_NAME)_*.tar.gz
-rm -r -f man/*.Rd
-rm -r -f NAMESPACE
rm -f ../$(PKG_NAME)_*.tar.gz
rm -r -f man/*.Rd
rm -r -f NAMESPACE
rm -f .Rhistory
rm -f *.RData
rm -f *.Rproj
rm -rf .Rproj.user

coverage: ## get test coverage
Rscript -e "devtools::test_coverage('.')"

create:
Rscript -e "pak::pak(c('devtools', 'usethis', 'pkgdown', 'rmarkdown', 'rcmdcheck', 'roxygen2', 'testthat'))"
Rscript -e "pak::pkg_install('r-lib/revdepcheck')"
Rscript -e "usethis::create_package(path = getwd(), rstudio = FALSE)"

docs:
Rscript -e "roxygen2::roxygenize()"

install:
R CMD INSTALL .

pkgdown:
Rscript -e "pkgdown::build_site('.')"

revdep:
Rscript -e "revdepcheck::revdep_check(num_workers=3)"

release:
-rm -f rstudio
-Rscript -e "devtools::submit_cran(args = c('--compact-vignettes=both'))"
Rscript -e "devtools::submit_cran(args = c('--compact-vignettes=both'))"

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

0 comments on commit 4c74763

Please sign in to comment.