Is it possible to have a conditional evaluation of RMarkdown so that a single document could be both rendered as PDF as well as a Shiny app?
(for example, if a table provides input into a plot, the initial table contents would be used in the PDF, but the table could be edited to create different plots in the RMarkdown document).
I know I can write a preprocessor for a domain-specific language to generate both variants, but it would be great if such a conditional syntax (or even such a preprocessor) already existed, and I was just a clueless newbie.