0

I cant figure out from the officer manual or function reference, if it is possible to create space between objects in a word document? By space i mean a function that would equal pressing "enter" while writing. Thank you in advance!

Kristina
  • 91
  • 1
  • 9

2 Answers2

1
body_add_par(value="")

should do the job.

eg.

myDoc <- myDoc %>%
  body_add_par(value = "example1")
  body_add_par(value = "")
  body_add_par(value = "example1")

You can use this to create spaces after tables and other objects.

Jamsandwich
  • 634
  • 1
  • 5
  • 25
0

from the documentation using /r/n will do the work . Example

ftext(", \r\nhow are you?", prop = bold_face ) )

Hunaidkhan
  • 1,411
  • 2
  • 11
  • 21