Learn R Programming

ReporteRs (version 0.8.10)

addColumnBreak: Add a column break into a section

Description

Add a column break into a section

Usage

addColumnBreak(doc, ...)

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

Arguments

doc

document object

...

further arguments passed to other methods

Value

a document object

Details

addColumnBreak only works with docx documents.

See Also

docx, addSection

Examples

Run this code
# NOT RUN {
doc.filename = "add_col_break.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" )
writeDoc( doc, file = doc.filename )
# }

Run the code above in your browser using DataLab