Search code examples
rofficer

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!


Solution

  • 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.