Write a company's template package to start from
Source:R/tpl_company.R
tfl_use_company_templates.RdA company's templates live in an R package of its own (decided 2026-10-17). This writes one to start from, every file meant to be read and changed: for each template chosen, a thin wrapper of tflspec's (the same parameters, the company's defaults where it changes them, the body tflspec's, so tflspec's fixes reach it) registered when the package is loaded, and the function its reports' programs call.
Arguments
- path
The package's folder (made; it must be empty or new).
- package
The package's name; the folder's name by default.
- templates
tflspec templates to wrap (
tfl_templates()).- prefix
The wrapped templates' names are
<prefix>_<template>(acme_demog);NULL:package."": the same names, replacing tflspec's when the package is loaded.
Details
The files: DESCRIPTION, NAMESPACE, LICENSE, R/templates.R (the
templates), R/zzz.R (their registration), tests/ (that each is
registered, takes no look as a parameter and expands),
inst/standards/defaults.yml (the company's study defaults, the form
of a study's spec/defaults.yml) and README.md.