Retrieves the footnote stored by bm_kable() and outputs it as italic text via knitr::asis_output(). Intended for use in a separate code chunk below the table to preserve Quarto cross-references.

bm_footnote(x)

Arguments

x

A knitr_kable object returned by bm_kable().

Value

A knitr::asis_output() with italic markdown text, or NULL invisibly if no footnote is present.

Examples

library(BioMathR)
tab <- bm_kable(anova(lm(weight ~ group, data = PlantGrowth)))
bm_footnote(tab)
#> [1] "*df = degrees of freedom; SS = sum of squares; MS = mean squares*"
#> attr(,"class")
#> [1] "knit_asis"
#> attr(,"knit_cacheable")
#> [1] NA