-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 1.33 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
pdf:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
Rscript -e 'file.remove(list.files(pattern = "*.(log|mtc|maf|aux|bcf|lof|lot|out|toc)"), here::here("front-and-back-matter", "abbreviations.aux"))'
Rscript -e 'browseURL(here::here("docs", "_main.pdf"))'
bs4book:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::bs4_book")'
Rscript -e 'file.create(here::here("docs", ".nojekyll"))'
Rscript -e 'browseURL(here::here("docs", "index.html"))'
gitbook:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook")'
Rscript -e 'file.create(here::here("docs", ".nojekyll"))'
Rscript -e 'browseURL(here::here("docs", "index.html"))'
word:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::word_document2")'
Rscript -e 'browseURL(here::here("docs", "_main.docx"))'
clean:
Rscript -e 'file.remove(list.files(pattern = "*.(log|mtc|maf|aux|bbl|blg|xml)"))'
clean-knits:
Rscript -e 'file.remove(list.files(pattern = "*.(docx|html|pdf|log|maf|mtc|tex|toc|out|lof|lot|bcf|aux)"))'
Rscript -e 'unlink(list.files(pattern = "*_(files|cache)"), recursive = TRUE)'