officer (version 0.3.14)

run_pagebreak: page break for Word

Description

Object representing a page break for a Word document. The result must be used within a call to fpar.

Usage

run_pagebreak()

Arguments

See Also

Other run functions for reporting: external_img(), ftext(), run_autonum(), run_columnbreak(), run_linebreak(), run_reference(), run_seqfield()

Examples

Run this code
# NOT RUN {
fp_t <- fp_text(font.size = 12, bold = TRUE)
an_fpar <- fpar("let's add a break page", run_pagebreak(), ftext("and blah blah!", fp_t))

x <- read_docx()
x <- body_add(x, an_fpar)
print(x, target = tempfile(fileext = ".docx"))
# }

Run the code above in your browser using DataLab