The values a report's header, footer, titles and footnotes fill their
{TOKENS} with – the study's, the report's own rows, and the report's
own tokens it says (OUTPUT_LABEL "Table 14.1.1" ...) – as
tfl_report_code() gives them to rtf_document(tokens = ): for a
preview of the page.
Arguments
- spec
A report definition (
tfl_read_report_spec()) narrowed to one report, or the path(s) to read it from; or a report of the YAML spec (tfl_output()), as read or resolved.- output_id
The report, when
specis a path or still defines several.- study
For a YAML report as read: the study (
tfl_read_study_spec()), its defaults and patterns.
Examples
sp <- tfl_table_spec(
report = data.frame(output_id = "T-14-1-1", type = "table"),
header = data.frame(output_id = NA, line = "1", center = "{OUTPUT_LABEL}"))
tfl_report_tokens(sp, "T-14-1-1")
#> OUTPUT_LABEL
#> "Table 14.1.1"