Is there a way to generate multiple books that differ based on a single parameter value? Let's say I want to generate
data1 and then
data2, which is
data1 with some filtering applied to remove certain observations.
In terms of API usage,
_bookdown.yml, there would be a vector of filenames for
params would be passed to
If this is not possible, then I'd have to simply combine the two books with all the analyses shown using both
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.