hf_line title(s) and footnote(s) to a rtf_doc objectR/header-footer.R
add_titles_footnotes.RdAdd hf_line titles/footnote objects to a rtf_doc object
add_titles(doc, ..., replace = FALSE) add_footnotes(doc, ..., replace = FALSE)
| doc |
|
|---|---|
| ... | A vector of |
| replace | If FALSE, lines will be appended/ordered with current header/footer lines. If TRUE, lines will replace the existing content. |
hf_line object(s) (i.e. titles/footnotes) to be added
# Adding titles after rtf_doc construction ht <- huxtable::huxtable( column1 = 1:5, column2 = letters[1:5] ) rtf <- rtf_doc(ht) rtf <- add_titles(rtf, hf_line("The Title")) # Adding footnotes after rtf_doc construction ht <- huxtable::huxtable( column1 = 1:5, column2 = letters[1:5] ) rtf <- rtf_doc(ht) rtf <- add_footnotes(rtf, hf_line("The Footnote"))