body_add_xml: Add an xml string as document element

View source: R/docx_add.R

body_add_xmlR Documentation

Add an xml string as document element

Description

Add an xml string as document element in the document. This function is to be used to add custom openxml code.

Usage

body_add_xml(x, str, pos = c("after", "before", "on"))

Arguments

x

an rdocx object

str

a wml string

pos

where to add the new element relative to the cursor, one of "after", "before", "on".


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