Last chance! 50% off unlimited learning
Sale ends in
List bookmarks id that can be found in an rdocx
object.
docx_bookmarks(x)
an rdocx
object
Other functions for Word document informations:
doc_properties()
,
docx_dim()
,
length.rdocx()
,
set_doc_properties()
,
styles_info()
# NOT RUN {
library(magrittr)
doc <- read_docx() %>%
body_add_par("centered text", style = "centered") %>%
body_bookmark("text_to_replace") %>% body_add_par("centered text", style = "centered") %>%
body_bookmark("text_to_replace2")
docx_bookmarks(doc)
docx_bookmarks(read_docx())
# }
Run the code above in your browser using DataLab