Last chance! 50% off unlimited learning
Sale ends in
A landscape section with multiple columns is added to the document.
body_end_section_columns_landscape(
x,
widths = c(2.5, 2.5),
space = 0.25,
sep = FALSE,
w = 21/2.54,
h = 29.7/2.54
)
an rdocx object
columns widths in inches. If 3 values, 3 columns will be produced.
space in inches between columns.
if TRUE a line is separating columns.
page width, page height (in inches)
Other functions for Word sections:
body_end_block_section()
,
body_end_section_columns()
,
body_end_section_continuous()
,
body_end_section_landscape()
,
body_end_section_portrait()
# NOT RUN {
str1 <- "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
str1 <- rep(str1, 5)
str1 <- paste(str1, collapse = " ")
doc_1 <- read_docx()
doc_1 <- body_add_par(doc_1, value = str1, style = "Normal")
doc_1 <- slip_in_column_break(doc_1, pos = "after")
doc_1 <- body_add_par(doc_1, value = str1, style = "Normal")
doc_1 <- body_end_section_columns_landscape(doc_1, widths = c(6, 2))
doc_1 <- body_add_par(doc_1, value = str1, style = "Normal")
print(doc_1, target = tempfile(fileext = ".docx"))
# }
Run the code above in your browser using DataLab