ph_add_fpar

0th

Percentile

append fpar

append fpar (a formatted paragraph) in a placeholder

Usage
ph_add_fpar(x, value, type = "body", id_chr = NULL, level = 1)
Arguments
x

a pptx device

value

fpar object

type

placeholder type

id_chr

placeholder id (a string). This is to be used when a placeholder type is not unique in the current slide, e.g. two placeholders with type 'body'. Values can be read from slide_summary.

level

paragraph level

See Also

fpar

Aliases
  • ph_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_pptx() %>%
  add_slide(layout = "Title and Content", master = "Office Theme") %>%
  ph_empty(type = "body") %>%
  ph_add_fpar(value = fpar_, type = "body", level = 2)

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

Community examples

Looks like there are no examples yet.