How do I put the Bookdown sections in a subdirectory?

I cannot imagine how to make a book with Rmd files in a subdirectory.

Here's my current directory structure:

  • myProject.Rproj
  • index.RMD
  • _bookdown.yml
  • chapters /
    • chapt1.RMD
    • chapt2.RMD
    • extraThatShouldNotBeIncluded.RMD

What do you need to do in _bookdown.yml

and in index.RMD

to do this?

+3


source to share


1 answer


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

:



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

      

+3


source







All Articles