I'd like to make multiple bookdown projects that have particular chapters in common. For example I would like the content of a particular file content_in_common.Rmd to be merged in to two different books when they are built. How can I achieve this? I understand that bookdown requires the Rmd files to be in a common working directory, so having
rmd_files: ["index.Rmd", "path_where_common_content_is_stored/content_in_common.Rmd"]
in my _bookdown.yml
doesn't work because it returns
Error: Input files not all in same directory, please supply explicit wd
Execution halted
Is there a solution to this (short of manually making duplicate versions of content_in_common.Rmd)?