Expand the colleyRstats LaTeX macros to plain standard LaTeX
Source:R/utils.R
expand_latex_macros.RdThe report functions normally emit compact custom macros (\F,
\p, \m, \sd, \df, \chisq,
\padj, \padjminor, \pminor, \rankbiserial,
\effectsize) that require latex_preamble() definitions. This
expands them into equivalent plain math (e.g. \F{2}{57}{4.50} becomes
$F(2, 57) = 4.50$) so the text compiles in any document with no custom
preamble – the "zero-setup Overleaf" path. It is applied automatically by
the sink_to/emit_overleaf() writers when
options(colleyRstats.macros = FALSE).