I am currently using the Officer package to produce a Word document. I have been using body_add_par
to add multiple chucks of blank lines throughout the document, but this method is already becoming tedious.
Is there a way to create a function, or somehow be able to write one line of code that is able to specify how many blank lines I want to insert?
Practice_R.docx = read_docx() %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par(paste("test")) %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par("") %>%
body_add_par(paste("test2"))%>%
body_add_break( pos = "after")