I read this (very interesting) conversation and I think I will use a unique .Rmd file where I will put all my redaction and code (even to do the data cleaning). But that topic only focused on R Markdown.
If I want to write an article / a report and then create a Shiny app related to that report where users can modify data, graphs, correlation tables, etc., what would the best practice be? It could be a good idea to make three different files:
- a .R document where all the code to tidy data, make linear regressions, etc. is made
- a .Rmd document where you only have text and the necessary code to make plots or tables
- another .R document containing the whole Shiny app.
What do you think about this?
I know that you can create a Markdown file that contains interactive Shiny items, but that is not what I want.