2017-10-07 31 views
1

安裝最小bookdown例子,我有以下錯誤後,當,當我嘗試建立書中的所有格式(配置,「之前」):錯誤insert_chapter_script建立所有格式

==> 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. 

但是建立格式分開(pdf_book,epub_book和gitbook)確實有效。

我通過RStudio-> New Project ... - > New Directory - > Book Project使用bookdown安裝了最小的下載示例。

我使用新的RStudio預覽版本1.1.383,下載0.5.3。和rmarkdown 1.6.0.9004。 (我相信它與以前的RStudio版本一起工作)

回答

1

這是當前開發版本的降價中的一個錯誤。我只是在Github上使用fixed it。請devtools::install_github('rstudio/bookdown')。謝謝!