Skip to contents

Add a bread to a rdocx element

Usage

addBreak(doc, landscape_continuous = FALSE)

Arguments

doc

a rdocx element

landscape_continuous

a boolean. Must be TRUE in case of landscape disposition to be continued after the break. Default to FALSE

Value

a rdocx element with a break at the end

Examples

doc <- read_docx()
#> Error in read_docx(): could not find function "read_docx"
doc <- addTextElement(doc, 'Titre 1 : description of the dataset', style = 'heading 1')
#> Error in addTextElement(doc, "Titre 1 : description of the dataset", style = "heading 1"): could not find function "addTextElement"
doc <- addBreak(doc)
#> Error in addBreak(doc): could not find function "addBreak"
doc <- addTextElement(doc, 'Titre 2 : comparaison of the dataset', style = 'heading 1')
#> Error in addTextElement(doc, "Titre 2 : comparaison of the dataset", style = "heading 1"): could not find function "addTextElement"
doc <- setLandscape(doc, add_break = TRUE)
#> Error in setLandscape(doc, add_break = TRUE): could not find function "setLandscape"
doc <- addBreak(doc, landscape_continuous = TRUE)
#> Error in addBreak(doc, landscape_continuous = TRUE): could not find function "addBreak"
doc <- addTextElement(doc, 'Titre 3 : plot', style = 'heading 1')
#> Error in addTextElement(doc, "Titre 3 : plot", style = "heading 1"): could not find function "addTextElement"
doc <- setLandscape(doc, add_break = FALSE)
#> Error in setLandscape(doc, add_break = FALSE): could not find function "setLandscape"
print(doc, target = 'output.docx')
#> Error in eval(expr, envir, enclos): object 'doc' not found