stext: Word styled text

Description Usage Arguments Examples

View source: R/cot_objects.R

Description

Format a chunk of text with a referenced style.

Usage

1
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

1
2
doc <- read_docx()
stext("hello", "strong", doc)

davidgohel/oxbase documentation built on Oct. 6, 2018, 3:43 a.m.