Learn R Programming

officer (version 0.4.1)

slip_in_text: append text

Description

append text into a paragraph of an rdocx object.

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_text(x, str, style = NULL, pos = "after", hyperlink = NULL)

Arguments

x

an rdocx object

str

text

style

text style

pos

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

hyperlink

turn the text into an external hyperlink