empty_content: create empty blocks

Description Usage See Also Examples

View source: R/empty_content.R

Description

an empty object to include as an empty placeholder shape in a presentation. This comes in handy when presentation are updated through R, but a user still wants to write the takeaway statements in PowerPoint.

Usage

1

See Also

ph_with(), body_add_blocks()

Examples

1
2
3
4
5
6
7
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Two Content",
  master = "Office Theme")
doc <- ph_with(x = doc, value = empty_content(),
 location = ph_location_type(type = "title") )
print(doc, target = fileout )

Example output



officer documentation built on July 21, 2021, 5:07 p.m.