-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 825 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 825 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
35
rfun := $(wildcard R/*.R)
rman := $(wildcard man/)
rcpp := $(wildcard src/*.cpp)
rtes := $(wildcard tests/testthat/*.R)
regular:
Rscript --no-init-file $(rscr) 1
check:
Rscript --no-init-file -e "devtools::check('.')"
vignet:
Rscript --no-init-file -e "devtools::load_all(); devtools::build_vignettes('.')"
formatR:
Rscript -e 'formatR::tidy_dir("./R", width.cutoff = 70)'
Rscript -e 'formatR::tidy_dir("./tests/test_that", width.cutoff = 70)'
paper:
Rscript -e "render('paper/paper.md', 'pdf_document')"
winbuild:
Rscript --no-init-file -e "devtools::build_win()"
goodpractice:
Rscript --no-init-file -e "goodpractice::gp()"
website:
Rscript --no-init-file -e "pkgdown::build_site()"
everything:
Rscript --no-init-file $(rscr) 2
clean:
rm -rf man/* src/*.o src/*.so R/RcppExports.R src/RcppExports.cpp