Download my slides for SMI 2018 R-Hack-A-Pack. I covered Package creation: From function to a GitHub Package.
For the .Rmd you can download here.