body_add_fpar

0th

Percentile

add fpar

add an fpar (a formatted paragraph) into an rdocx object

Usage
body_add_fpar(x, value, style = NULL, pos = "after")
Arguments
x

a docx device

value

a character

style

paragraph style

pos

where to add the new element relative to the cursor, one of "after", "before", "on".

See Also

fpar

Aliases
  • body_add_fpar
Examples
# NOT RUN {
library(magrittr)
bold_face <- shortcuts$fp_bold(font.size = 30)
bold_redface <- update(bold_face, color = "red")
fpar_ <- fpar(ftext("Hello ", prop = bold_face),
              ftext("World", prop = bold_redface ),
              ftext(", how are you?", prop = bold_face ) )
doc <- read_docx() %>% body_add_fpar(fpar_)

print(doc, target = "body_add_fpar.docx" )
# }
Documentation reproduced from package officer, version 0.1.5, License: GPL-3

Community examples

Looks like there are no examples yet.