I have created this package to create a blank Rmd file by saving a nearly blank Rmd template to the menu when you create Rmd files.
I think it at least follows the first half of the UNIX orthodox: programs that do one thing and do it well.
Reflection: the main purpose for me to create this package, other than making life easier, is to practise how to publish a R package onto github and to install it from there.
I had this quesition when preparing my manuscript and a quick search brings me to this stackoverflow question by Johanna. I find the answer by Henrick to be highly effective, but can be further elaborated so that readers can be clearer about the functions of each line. Thus, I will base my post largely on Henrick’s answer but at the same time add my explanation to the rationale behind the lines.