After installing the minimal bookdown example I got the following error when I try to build all formats of the book:
==> rmarkdown::render_site(encoding = 'UTF-8')
Error in insert_chapter_script(config, "before") :
object 'config' not found
Calls: <Anonymous> ... <Anonymous> -> insert_code_chunk -> insert_chapter_script
Execution halted
Exited with status 1.
But building the formats separately (pdf_book, epub_book and gitbook) does work.
I installed the minimum bookdown example via RStudio-> New Project… -> New Directory -> Book Project using bookdown.
I use the new RStudio preview version 1.1.383, bookdown 0.5.3. and rmarkdown 1.6.0.9004. (I believe it did work with the previous RStudio version)
This is a bug in the current development version of bookdown. I just fixed it on Github. Please devtools::install_github('rstudio/bookdown')
. Thanks!