List all bookmarks available in a docx
object.
list_bookmarks(x, body = TRUE, header = TRUE, footer = TRUE)
x | a |
---|---|
body | specifies to scan document body |
header | specifies to scan document header |
footer | specifies to scan document footer |
a character vector
doc <- docx( title = "My example", template = file.path( system.file(package = "ReporteRs"), "templates/bookmark_example.docx") ) list_bookmarks( doc )#> [1] "PLOT" "DATA" "AUTHOR" "REVIEWER"