slip_in_text

0th

Percentile

append text

append text into a paragraph of an rdocx object

Usage
slip_in_text(x, str, style = NULL, pos = "after")
Arguments
x

an rdocx object

str

text

style

text style

pos

where to add the new element relative to the cursor, "after" or "before".

Aliases
  • slip_in_text
Examples
# NOT RUN {
library(magrittr)
x <- read_docx() %>%
  body_add_par("Hello ", style = "Normal") %>%
  slip_in_text("world", style = "strong") %>%
  slip_in_text("Message is", style = "strong", pos = "before")

print(x, target = tempfile(fileext = ".docx"))
# }
Documentation reproduced from package officer, version 0.3.5, License: GPL-3

Community examples

Looks like there are no examples yet.