Bookdown stopped following chapter order specified in _bookdown.yml

孤者浪人 提交于 2019-12-11 06:47:47

问题


Bookdown will order chapters alphabetically unless an order is specified after rmd_files: in the _bookdown.yml file

This has worked fine for me in the past but is not currently working. Here is a MWE:

This _bookdown.yml specifies to render Chapter 2 before Chapter 1 and not include Chapter 3, yet Chapters 1, 2, and 3 are rendered in order in the rendered book. (Rendered with bookdown::render_book("index.Rmd")

The local preview has the same issue.

I am using the dev version of bookdown (0.10.1).

Any clues?


回答1:


This is a bug in bookdown v0.10, which I just fixed on Github. You may try the development version:

remotes::install_github('rstudio/bookdown')


来源:https://stackoverflow.com/questions/56118663/bookdown-stopped-following-chapter-order-specified-in-bookdown-yml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!