officer (version 0.1.5)

body_bookmark: add bookmark

Description

Add a bookmark at the cursor location.

Usage

body_bookmark(x, id)

Arguments

x

an rdocx object

id

bookmark name

Examples

Run this code
# NOT RUN {
# cursor_bookmark ----
library(magrittr)

doc <- read_docx() %>%
  body_add_par("centered text", style = "centered") %>%
  body_bookmark("text_to_replace")
# }

Run the code above in your browser using DataCamp Workspace