I have an R package that has 4 markdown templates that can be used to knit HTML documents after installation.
These templates share the same set of supporting files (css, images, scripts, html files, ... - about 6 MB of files).
RStudio's R Markdown Document Templates page: sates that:
If want to include supporting files with your template they should be placed in the skeleton directory. These files will be automatically copied alongside new documents.
However, I would like to know if there is there a way for multiple templates to share one copy of these supporting files when creating a new document from a template?
The goal is to reduce the total download size of the package (package vignettes also use the same supporting files, so there are 5 * 6 MB copies all up), and to improve reproducibility (i.e. not having to update multiple copies of the assets when I make a change).