-
Notifications
You must be signed in to change notification settings - Fork 1
/
RenderBook.R
24 lines (17 loc) · 875 Bytes
/
RenderBook.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# visit https://bookdown.org/yihui/bookdown for more options
# create the nojeckyll file (once, if docs/ is empty)
#file.create('docs/.nojekyll')
bookdown::render_book("index.Rmd",
output_format = 'bookdown::gitbook',
output_dir = "docs", encoding="UTF-8",
params = list(ispdf = FALSE))
# It is posible to obtain the pdf version using the following code OR
# by accessing the save>pdf option in the html gitbook version generated above.
# if MikTex is installed:
# devtools::install_github('yihui/tinytex')
bookdown::render_book("index.Rmd",
output_format = 'bookdown::pdf_book',
output_dir = "pdf", encoding="UTF-8",
params = list(ispdf = TRUE))
# to preview a single chapter
bookdown::preview_chapter("1_singleRunExploration.Rmd")