run_word_field: 'Word' computed field

View source: R/ooxml_run_objects.R

run_word_fieldR Documentation

'Word' computed field

Description

Create a 'Word' computed field.

Usage

run_word_field(field, prop = NULL, seqfield = NULL)

run_seqfield(field, prop = NULL, seqfield = NULL)

Arguments

field

Value for a "Word Computed Field" as a string.

prop

formatting text properties returned by fp_text.

seqfield

deprecated in favor of field.

usage

You can use this function in conjunction with fpar to create paragraphs consisting of differently formatted text parts. You can also use this function as an r chunk in an R Markdown document made with package officedown.

Note

In the previous version, this function was called run_seqfield but the name was wrong and should have been run_word_field.

See Also

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_wordtext()

Other Word computed fields: run_autonum(), run_reference()

Examples

run_word_field(field = "PAGE  \\* MERGEFORMAT")
run_word_field(field = "Date \\@ \"MMMM d yyyy\"")

davidgohel/officer documentation built on March 18, 2024, 4:06 p.m.