View source: R/generate_book.R
generate_book | R Documentation |
The generation of an entire book is performed without any given arguments using the current directory which must be an package book directory or giving a path to the package. A part of the book may be generated when a Rmd file name or a list of is given.
generate_book(
input_rmd = NULL,
book_pkg_dir = getwd(),
output_format = NULL,
params = list(),
output_file = NULL
)
input_rmd |
Chapter Rmd file name (optional) |
book_pkg_dir |
Book package directory path (optional, default: current directory) |
output_format |
String defining the type of document to build (optional); among "bookdown::pdf_document2", "bookdown::pdf_document2", "bookdown::gitbook" (default) |
params |
A list containing parameters to pass to the Rmd document to parameterize the output or overload existing params in the document |
output_file |
Output file name to be produced |
A success status of the document generation
build_current_book_part_html, build_current_book_part_pdf
## Not run:
generate_book()
generate_book(input_rmd = "07-chap.Rmd")
generate_book(input_rmd = "07-chap.Rmd",
output_format = 'bookdown::pdf_document2')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.