Kristina
Kristina

Reputation: 91

Creating space under/over paragraphs, tables etc

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!

Upvotes: 0

Views: 626

Answers (2)

Jamsandwich
Jamsandwich

Reputation: 634

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.

Upvotes: 1

Hunaidkhan
Hunaidkhan

Reputation: 1443

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

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

Upvotes: 0

Related Questions