officer (version 0.3.4)

stext: Word styled text

Description

Format a chunk of text with a referenced style.

Usage

stext(text, style_id = NULL, style, doc)

Arguments

text

text value

style_id

style id

style

style name. Use only when you don't know what is the id associated with a stylename.

doc

rdocx object where the text will be inserted. This is only used to get the style id from the style name (use only when you don't know what is the id associated with a stylename).

Examples

Run this code
# NOT RUN {
doc <- read_docx()
stext("hello", "strong", doc)
# }

Run the code above in your browser using DataCamp Workspace