ReporteRs (version 0.7.7)

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

Description

Insert a page break into a docx section.

Usage

## S3 method for class '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
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 )

Run the code above in your browser using DataCamp Workspace