Is there a way to generate multiple books that differ based on a single parameter value? Let's say I want to generate book1.pdf using data1 and then book2.pdf uses data2, which is data1 with some filtering applied to remove certain observations.
In terms of API usage,
in _bookdown.yml, there would be a vector of filenames for book_filename.
Maybe params would be passed to rmarkdown::render()?
If this is not possible, then I'd have to simply combine the two books with all the analyses shown using both data1 and data2, but this would double the length and make the report very long.
Another option I can think of is to create a branch where data2 is used to generate the report, and then I can switch between branches to generate the one that uses data1. Then at a later date when the project starts to mature we may choose to move forward with using only one of these.