This function can be called on a gt table and will the function just as tab_footnote. If called on a kable table, it will print the kable table, ignoring the footnote.

tab_footnote(
  data,
  footnote,
  locations = NULL,
  placement = c("auto", "right", "left")
)

Arguments

data

gt table or kable table

footnote

Footnote. Will be ignored for a kable table.

locations

Location, as per gt, e.g., cells_body. Will be ignored for a kable table.

placement

Where to affix footnote marks. Will be ignored for a kable table.

Value

gt table or kable table, whichever format data is in.