17.4 Sharing your templates

As templates are stored within packages, it is easy to distribute them to other users. If you decide not to take the normal approach of publishing your package to CRAN, you may consider using GitHub to host your package instead, in which case users can also easily install your package and templates:

if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("username/packagename")

To find out more about packages and the use of GitHub, you may refer to the book “R Packages(Wickham 2015) (http://r-pkgs.had.co.nz/git.html).

References

Wickham, Hadley. 2015. R Packages. 1st ed. O’Reilly Media, Inc.