sharoz
sharoz

Reputation: 6345

How do I put Bookdown chapters in a subdirectory?

I can't figure put how to make a book with Rmd files in a subdirectory.

Here's my current directory structure:

What should go in _bookdown.yml and in index.RMD to make this work?

Upvotes: 6

Views: 978

Answers (1)

sharoz
sharoz

Reputation: 6345

It turns out that you just have to specify the directory of each RMD in _bookdown.yml:

rmd_files: ["index.Rmd", "chapters/chapt1.RMD", "chapters/chapt2.RMD"]

Upvotes: 6

Related Questions