Fork this project to create your own R template.
DESCRIPTION
Metadata about the packageman/
Documentation about the exported functions (available via?
and??
)R/
Put your scripts here
Here are some more detaild instructions as to what the files mean: https://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf
A shorter, more digestible guide is here: http://hilaryparker.com/2014/04/29/writing-an-r-package-from-scratch/