Insert a page break in a MS-Word (R) document at the position of the cursor.

WrdPageBreak(wrd = DescToolsOptions("lastWord"))

Arguments

wrd

the pointer to a word instance. Can be a new one, created by GetNewWrd() or an existing one, created by GetCurrWrd(). Default is the last created pointer stored in DescToolsOptions("lastWord").

Author

Andri Signorell <andri@signorell.net>

Examples

if (FALSE)  # Windows-specific example
wrd <- GetNewWrd()
WrdText("This is text on page 1.\n\n")
#> Error in WrdText("This is text on page 1.\n\n"): could not find function "WrdText"
WrdPageBreak()
#> Error in wrd[["Selection"]]$InsertBreak(wdConst$wdSectionBreakNextPage): attempt to apply non-function
WrdText("This is text on another page.\n\n")
#> Error in WrdText("This is text on another page.\n\n"): could not find function "WrdText"
 # \dontrun{}