forked from ropenscilabs/deposits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (35 loc) · 976 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
45
46
47
48
49
50
51
VIGNETTE=deposits
README=README
.PHONY: all build check doc test
all: docall build check
build: docall
R CMD build .
#check: build
# R CMD check typetracer*tar.gz
clean:
-rm -f deposits*tar.gz
-rm -fr deposits.Rcheck
-rm -fr src/*.{o,so}
doc:
Rscript -e 'devtools::document()'
readme:
Rscript -e 'rmarkdown::render("$(README).Rmd")'
site: clean doc readme
Rscript -e "pkgdown::build_home(quiet=FALSE)"
Rscript -e "pkgdown::build_articles(quiet=FALSE)"
Rscript -e "pkgdown::build_reference()"
articles:
Rscript -e "pkgdown::build_articles(quiet=FALSE)"
docall: readme doc site
open:
xdg-open docs/index.html &
test:
Rscript -e 'devtools::test()'
check:
Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)'
knitr: $(README).Rmd
echo "rmarkdown::render('$(README).Rmd',output_file='$(README).md')" | R --no-save -q
install: clean
R CMD INSTALL .
project:
xdg-open https://github.com/orgs/ropenscilabs/projects/2