-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
50 lines (39 loc) · 1.1 KB
/
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
doc:
R -s -e "pkgload::load_all('pkg');roxygen2::roxygenize('pkg')"
pkg: doc
rm -f *.tar.gz
R CMD build --compact-vignettes="gs+qpdf" pkg
check: doc
rm -rf *.tar.gz
R CMD build --compact-vignettes="gs+qpdf" pkg
R CMD check *.tar.gz
cran: doc
rm -rf *.tar.gz
R CMD build --compact-vignettes="gs+qpdf" pkg
R CMD check --as-cran *.tar.gz
install: doc
rm -rf *.tar.gz
R CMD build --compact-vignettes="gs+qpdf" 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: pkg
rm -rf revdep
mkdir revdep
mv *.tar.gz revdep
R -s -e "out <- tools::check_packages_in_dir('revdep',reverse=list(which='most'),Ncpus=3); print(summary(out)); saveRDS(out, file='revdep/output.RDS')"
vignette:
mkdir -p out
cp pkg/vignettes/* ./out
cd out; R -e "options(keep.source=TRUE); library(simplermarkdown); mdweave_to_html('introduction.md')"
clean:
rm -f pkg/vignettes/*.aux
rm -f pkg/vignettes/*.log
rm -f pkg/vignettes/*.out
rm -f pkg/vignettes/*.pdf
rm -f pkg/vignettes/*.toc
rm -rf *.Rcheck
rm -rf revdep
rm -f *.tar.gz