body_bookmark: Add bookmark in a 'Word' document

View source: R/docx_add.R

body_bookmarkR Documentation

Add bookmark in a 'Word' document

Description

Add a bookmark at the cursor location. The bookmark is added on the first run of text in the current paragraph.

Usage

body_bookmark(x, id)

Arguments

x

an rdocx object

id

bookmark name

Examples


# cursor_bookmark ----

doc <- read_docx()
doc <- body_add_par(doc, "centered text", style = "centered")
doc <- body_bookmark(doc, "text_to_replace")

officer documentation built on Oct. 10, 2024, 1:06 a.m.