Build a bookdown book using bookdown::render_book().
step_build_bookdown(...)Arguments passed on to bookdown::render_book
inputAn 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.
output_formatArguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
cleanArguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
envirArguments to be passed to
rmarkdown::render(). For preview_chapter(),
... is passed to render_book().
clean_envirWhether 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.
output_dirThe 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).
new_sessionWhether 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).
previewWhether 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).
encodingIgnored. The character encoding of all input files is supposed to be UTF-8.
config_fileThe 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