forked from gastonstat/r4strings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 678 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 678 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
html:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)'
cp -fvr style.css _book/
cp -fvr images _book/
build:
make html
Rscript -e 'browseURL("_book/index.html")'
pdf:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
md:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book", clean = FALSE)'
#deploy:
# Rscript -e 'bookdown::publish_book(render="local", account="gaston")'
clean:
Rscript -e "bookdown::clean_book(TRUE)"
rm -fvr _bookdown_files
cleaner:
make clean
rm -frv *.aux *.out *.toc # Latex output
rm -fvr *.html # rogue html files