-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile
36 lines (25 loc) · 872 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
LFILE = README
YFILE = data-raw/insert-yaml-in-use-action
VIGNETTE = list-checks
#all: insert knith #open
all: init readme vignette
init:
echo "pkgdown::init_site()" | R --no-save -q
readme:
echo "pkgdown::build_home(preview=FALSE,,quiet=FALSE)" | R --no-save -q
vignette:
echo "pkgdown::build_article('$(VIGNETTE)',quiet=FALSE)" | R --no-save -q
knith: $(LFILE).Rmd
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q
knitr: $(LFILE).Rmd
echo "rmarkdown::render('$(LFILE).Rmd',output_format=rmarkdown::md_document(variant='gfm'))" | R --no-save -q
#open: $(LFILE).html
# xdg-open $(LFILE).html &
open:
xdg-open docs/articles/$(VIGNETTE).html &
check:
Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)'
insert: $(YFILE).R
Rscript $(YFILE).R
clean:
rm -rf *.html *.png README_cache