Coding can be very exciting. And the more excited you are the less you wish to comment your code or to create any simple report about what you have done. It becomes even more complicated if your code produces not just one output file but also a lot of different figures which can change upon changing some of the code parameters (for example when you need to experiment with your parameter set and find the best one and then prove that it was the best). In this case I would spend a lot of time for coding, then for commenting and then for creating a report in a pdf or powerpoint/keynote format. Luckily there are tools that can help with reporting your results in a very efficient way.
Proper reporting not only helped me a lot in my data analysis but now I also spend a significantly less amount of time for creating my project update reports every couple of weeks (I practically spend no time!)
The script is quite simple and ready to use, so I would highly recommend it to R users of any level.
The script repository is located here (there is also a detailed description on it’s usage):
To quickly get the script repository, run the script and see an example report please follow these steps:
git clone https://github.com/wikiselev/easy-Report.git cd easy-Report Rscript easy-Report.R script.Rmd report
After running the code above all output report files will be located in ‘report’ folder. If there was no error you should get the same HTML reports as these two:
I hope this script will be useful for some of you and very much accelerate your work progress! Please let me know if you have any questions.