This is a stub for setting up templated reports from within the package. The way this works is:
Write a template and put it in inst/packages.
Write the rendering function in templates.R.
Each rendering function is basically a wrapper to:
Retrieve the matching template file.
Pass the parameters to rmarkdown::render.
The wrappers are useful for deployment, since if we change the "official" templates for different ones, function calls to the rendering from outside (for instance, the minute pipeline could be a candidate for this) do not need to change.
This is a stub for setting up templated reports from within the package. The way this works is:
inst/packages
.templates.R
.Each rendering function is basically a wrapper to:
rmarkdown::render
.The wrappers are useful for deployment, since if we change the "official" templates for different ones, function calls to the rendering from outside (for instance, the
minute
pipeline could be a candidate for this) do not need to change.