-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
47 lines (37 loc) · 909 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
doc:
R -s -e "pkgload::load_all('pkg');roxygen2::roxygenize('pkg')"
pkg: doc
rm -f *.tar.gz
R CMD build pkg
check: doc
rm -f *.tar.gz
R CMD build pkg
R CMD check *.tar.gz
cran: doc
rm -f *.tar.gz
R CMD build pkg
R CMD check --as-cran *.tar.gz
install: doc
rm -f *.tar.gz
R CMD build pkg
R CMD INSTALL *.tar.gz
test: doc
R -s -e "tinytest::build_install_test('pkg')"
manual: doc
R CMD Rd2pdf --force -o manual.pdf ./pkg
revdep: doc
rm -rf *.tar.gz
R CMD build pkg
rm -rf revcheck
mkdir revcheck
mv *.tar.gz revcheck
R -s -e "out <- tools::check_packages_in_dir('revcheck',reverse=list(which='most'),Ncpus=3); print(summary(out)); saveRDS(out, file='revcheck/output.RDS')"
introduction:
R -s -e "rmarkdown::render('pkg/vignettes/intro.Rmd')"
xdg-open pkg/vignettes/intro.html
clean:
rm -rf revdep
rm -f *.tar.gz
rm -f pkg/vignettes/*.html
rm -rf *.Rcheck
rm -rf manual.pdf