jtr13
jtr13

Reputation: 1277

Bookdown stopped following chapter order specified in _bookdown.yml

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?

Upvotes: 2

Views: 214

Answers (1)

Yihui Xie
Yihui Xie

Reputation: 30124

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')

Upvotes: 2

Related Questions