tblCap(
  caption.text=NULL,
  advance.counter=1
  )

Arguments

caption.text

Text string to be used for caption. If NULL, no caption is returned, but the table counter is advanced.

advance.counter

Numeric. Number to be added to the present table number. Default is 1, advancing table count by 1.

Examples

options(table_number=1) tblCap("My table caption is great.")
#> [1] "**Table 2:** My table caption is great."
# Returns ' **Table 2:** My table caption is great. ' getOption("table_number")
#> [1] 2
# Returns '2'