addColumnBreak: Add a column break into a section

Description Usage Arguments Details Value See Also Examples

View source: R/addColumnBreak.R

Description

Add a column break into a section

Usage

1
2
3
4
addColumnBreak(doc, ...)

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

Arguments

doc

document object

...

further arguments passed to other methods

Details

addColumnBreak only works with docx documents.

Value

a document object

See Also

docx, addSection

Examples

1
2
3
4
5
6
7
8
9
if( check_valid_java_version() ){
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 )
}

davidgohel/ReporteRs documentation built on March 23, 2020, 11 p.m.