ReporteRs (version 0.7.9)

addColumnBreak.docx: Insert a column break into a docx section

Description

Insert a page break into a docx section.

Usage

# S3 method for docx
addColumnBreak(doc, ...)

Arguments

doc

Object of class docx where column break has to be added

...

further arguments, not used.

Value

an object of class docx.

See Also

docx, addColumnBreak, addSection.docx

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
doc.filename = "addColumnBreak.docx"
doc = docx( )
doc = addSection(doc, ncol = 2, columns.only = TRUE )
doc = addParagraph( doc = doc, "Text 1.", "Normal" )
doc = addColumnBreak(doc )
doc = addParagraph( doc = doc, "Text 2.", "Normal" )

# Write the object
writeDoc( doc, file = doc.filename )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace