Format a chunk of text with a referenced style.
stext(text, style_id = NULL, style, doc)
text value
style id
style name. Use only when you don't know what is the id associated with a stylename.
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).
# NOT RUN {
doc <- read_docx()
stext("hello", "strong", doc)
# }
Run the code above in your browser using DataLab