forked from asancpt/NonCompart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (23 loc) · 782 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
all: cran pkgdown readme
cran: build rd2pdf
R CMD check --as-cran ../NonCompart_*.tar.gz ;\
mv ../NonCompart_*.tar.gz releases/
install:
cd .. ;\
R CMD INSTALL --no-multiarch --with-keep.source NonCompart
roxygen: install
Rscript -e "library(NonCompart);roxygen2::roxygenise()"
build: roxygen
Rscript -e "devtools::build()"
rd2pdf:
cd .. ;\
rm NonCompart.pdf NonCompart/inst/doc/NonCompart.pdf ;\
R CMD Rd2pdf NonCompart ;\
cp NonCompart.pdf NonCompart/inst/doc/NonCompart.pdf
pkgdown:
rm -rf docs ;\
Rscript -e "Sys.setlocale('LC_ALL', 'C'); pkgdown::build_site()"
rdmd:
Rscript -e "Rd2md::Rd2markdown(rdfile = 'man/NonCompart-package.Rd', outfile = 'README.md')"
readme:
Rscript -e "rmarkdown::render('README.Rmd', output_format = 'github_document')"