The function adds a reference label to the caption so that pander
tables
can be cross-referenced in bookdown
using the \@ref(tab:label)
syntax.
The function should only be used in pander(x, caption = add_label())
.
add_label(caption = "", tag = "tab")
The caption text prefixed with a reference label.
Other utility:
get_path_to_protocol()
,
get_protocol_type()
,
get_protocolnumbers()
,
get_short_titles()
,
get_version_number()
,
increment_version_number()
add_label("caption text")
#> [1] "(\\#tab:)caption text"