Build a bookdown book using bookdown::render_book().
step_build_bookdown(...)Arguments passed on to bookdown::render_book
An input filename (or multiple filenames). If preview =
TRUE, only files specified in this argument are rendered, otherwise all R
Markdown files specified by the book are rendered.
Arguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
Arguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
Arguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
Whether to clean up the environment envir before
rendering the book. By default, the environment is cleaned when rendering
the book in a non-interactive R session.
The output directory. If NULL, a field named
output_dir in the configuration file _bookdown.yml will be
used (possibly not specified, either, in which case a directory name
_book will be used).
Whether to use new R sessions to compile individual Rmd
files (if not provided, the value of the new_session option in
_bookdown.yml is used; if this is also not provided,
new_session = FALSE).
Whether to render and preview the input files specified by the
input argument. Previewing a certain chapter may save compilation
time as you actively work on this chapter, but the output may not be
accurate (e.g. cross-references to other chapters will not work).
Ignored. The character encoding of all input files is supposed to be UTF-8.
The book configuration file.
# NOT RUN {
dsl_init()
get_stage("script") %>%
add_step(step_build_bookdown("."))
dsl_get()
# }
Run the code above in your browser using DataLab