Skip to contents

Internal rendering helper used by the event study report skeleton and es_report(). Exported so inst/rmarkdown/ templates can call it without :::.

Usage

report_table(x, caption = NULL, col.names = NULL, digits = NULL)

Arguments

x

A data frame to render.

caption

Optional character scalar caption, or NULL.

col.names

Optional character vector of display column names, or NULL. When supplied, x is renamed before tt()/kable() so both rendering paths show the display names.

digits

Optional integer digit count, or NULL. Passed to tt() and knitr::kable(). Pass NULL for pre-sprintf()-formatted tables to preserve byte-compatible output.

Value

invisible(NULL). Side-effect: prints the table via knit_print.

Details

When tinytable is available (see .tinytable_available()), renders via tinytable::tt() with a bold header, auto-aligned columns, and optional digit rounding. Falls back to knitr::kable() when tinytable is absent – byte-identical to the prior scattered knitr::kable() call sites.