0

I am using the officer and flextable packages to write reports in word.

When I use the body_add_flextable() function, the tables always start on a new page because the

"do not separate from the next paragraph" is activated in Word paragraph settings.

How can I deactivate this in the flextable settings.

doc <- read_docx("template.docx")

tab<-airquality

doc <- body_add_table(doc,tab)

tab<-flextable(tab)

doc <- body_add_flextable(doc,tab)

print(doc, target = "test_template.docx")

The body_add_table() function works without the break the body_add_flextable() not.

https://i.stack.imgur.com/zB5Xx.png

https://i.stack.imgur.com/7ID1P.png

Thank you

Zies

Carlos Luis Rivera
  • 3,108
  • 18
  • 45
zies
  • 3
  • 3

0 Answers0