How to automate statistical analysis and create a nice-looking report using RStudio and RMarkdown