-
Notifications
You must be signed in to change notification settings - Fork 341
/
Makefile
44 lines (32 loc) · 838 Bytes
/
Makefile
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
36
37
38
39
40
41
42
43
44
# Makefile for generating R packages.
# 2017 Rob J Hyndman
#
# Assumes Makefile is in top folder of package
PKG_NAME=$(shell grep -i ^package DESCRIPTION | cut -d : -d \ -f 2)
default: build
build:
Rscript -e "devtools::build(args = c('--compact-vignettes=both'))"
check:
Rscript -e "try(devtools::check('.'), silent=FALSE)"
clean:
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:
Rscript -e "devtools::test_coverage('.')"
docs:
Rscript -e "devtools::document()"
install:
R CMD INSTALL .
pkgdown:
Rscript -e "pkgdown::build_site('.')"
revdep:
Rscript -e "revdepcheck::revdep_check(num_workers=3)"
release:
Rscript -e "devtools::submit_cran(args = c('--compact-vignettes=both'))"
test:
Rscript -e "devtools::test('.')"