问题
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