A similar question (Workflow for statistical analysis and report writing) has been asked on StackOverflow about structuring the R code, however, it does not addresses the proble