Hello everyone!
I have the following problem:
We evaluate models that we generate using an RMD template that produces different plots and tables. We will individualize and comment these elements and the results for every model, to highlight the key differences and insights. This often happens after presentations and discussions or during code review, improving and finetuning the report over time.
But we do also create a slimmed down version of the report for external stakeholders, which does not include all of the elements from the report that we use internally.
The problem:
Now we do have those two reports and they come out of sync very fast. After feedback some plot gets changed, some comments added here or there and the two reports do not show quite the same results anymore even where they should. Currently I use a diffchecker to see where they differ and try to get them back in sync, but that is really not a useful way how to do it.
We were trying to come up with solutions for this:
-
Setting some chunks to not evaluate for the external report, but how do we keep the comments and plain text to show up?
-
Creating two documents that are knitted together into one. Like always knitting the slimmer report and adding on extra chunks and plain text in a separate RMD that get knitted together somehow (maybe using bookdown)
But I am sure that we are not the first and only people encountering this problem and I wanted to ask if anyone has found a good approach for problems like this.
Thanks for any insights or pointers towards materials!
Andreas
Further information:
We use Rstudio, sync our code through github and do most of the data processing in SQL chunks for this report.