Description Usage Arguments Details
View source: R/build_single_chapter_book.R
A desirable functionality when building a collaborative bookdown book is the ability to build single chapters without having to build all chapters. This function needs a bookdown "book_repo" that contains the bookdown skeleton and the repo (just the repo, not the URL) for the "chapter package".
1 | buildSingleRepoBook(book_repo, book_path, pkg_repo)
|
book_repo |
characterr(1) the URL of the book repo; this will be cloned with git, so make sure that is exptected to work. |
book_path |
character(1) Clone into this path |
pkg_rep |
character(1) This is NOT a URL, but a string that is compatible with BiocManager::install. |
Steps involved are:
Clone the book repo (must not exist)
Change into the book repo directory
Install (and capture output) the "chapter package", including building the vignette locally.
Copy the installed Rmd file into the current directory
Build the pdf, epub, and gitbook
change back into the original directory
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.