View source: R/ooxml_run_objects.R
run_wordtext | R Documentation |
Format a chunk of text associated with a 'Word' character style. The style is defined with its unique identifer.
run_wordtext(text, style_id = NULL)
text |
text value, a single character value |
style_id |
'Word' unique style identifier associated with the style to use. |
ftext()
Other run functions for reporting:
external_img()
,
ftext()
,
hyperlink_ftext()
,
run_autonum()
,
run_bookmark()
,
run_columnbreak()
,
run_comment()
,
run_footnote()
,
run_footnoteref()
,
run_linebreak()
,
run_pagebreak()
,
run_reference()
,
run_tab()
,
run_word_field()
run1 <- run_wordtext("hello", "DefaultParagraphFont")
paragraph <- fpar(run1)
x <- read_docx()
x <- body_add_fpar(x, paragraph)
print(x, target = tempfile(fileext = ".docx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.