forked from robjhyndman/forecast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 655 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 655 Bytes
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
# 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)
all: install
check:
Rscript -e "rcmdcheck::rcmdcheck()"
build:
Rscript -e "devtools::build(args = c('--compact-vignettes=both'))"
install:
R CMD INSTALL .
clean:
-rm -f ../$(PKG_NAME)_*.tar.gz
-rm -r -f man/*.Rd
-rm -r -f NAMESPACE
docs:
Rscript -e "roxygen2::roxygenize()"
pkgdown:
Rscript -e "pkgdown::build_site()"
revdep:
Rscript -e "revdepcheck::revdep_check(num_workers=3)"
release:
Rscript -e "devtools::release(args = c('--compact-vignettes=both'))"