# NOT RUN {
library(huxtable)
ht <- huxtable(
column1 = 1:5,
column2 = letters[1:5]
)
rtf <- rtf_doc(ht, list(hf_line("aTitle")))
index(rtf$titles[[1]])
# Returns NULL
index(rtf$titles[[1]]) <- 2
# Sets index of first titles to 2
# }
Run the code above in your browser using DataLab