Learn R Programming

officer (version 0.4.1)

slip_in_seqfield: append seq field

Description

append seq field into a paragraph of an rdocx object. This feature is only available when document are edited with Word, when edited with Libre Office or another program, seq field will not be calculated and not displayed.

This function will be deprecated in the next release because it is not efficient and make users write complex code. Use instead fpar() to build formatted paragraphs.

Usage

slip_in_seqfield(x, str, style = NULL, pos = "after")

Arguments

x

an rdocx object

str

seq field value

style

text style

pos

where to add the new element relative to the cursor, "after" or "before".