I want to be able to pass an rpptx
object into a function that outputs a character vector of slide layout names for each slide in the object.
For example, using a fictitious get_slide_layouts()
function:
pres <- officer::read_pptx()
pres <- officer::add_slide(pres, layout = "Title and Content", master = "Office Theme")
pres <- officer::add_slide(pres, layout = "Title and Content", master = "Office Theme")
get_slide_layouts(pres)
I would be looking for the output:
c("Title and Content", "Title and Content")
slide_summary()
doesn't seem to give me what I'm looking for. How can I extract the layout names for each slide in the rpptx
object?