0

I created a simple slide template with a master template and several layouts, along with their placeholder (slide template attachment in this thread here). Oddly, when I try to read_pptx, it seems to be unsuccessful in picking up the template name (it's reading as a null value)? This seems to result in error when using ph_with - I'm guessing it's because it couldn't process a null value. Have I perhaps done something wrong, either in the template creation or code, or is this a bug? Thank you!

library('tidyverse')
library('officer')

presentation <- officer::read_pptx('Slide Template_R.pptx')
template_object_map <- presentation %>% officer::layout_properties() %>% select(c('master_name','name', 'type', 'id', 'ph_label'))

my_pres <- presentation %>%
remove_slide(index = 1) %>%
add_slide(master=NA, layout='Style_leftright_a') %>%
ph_with(value= 'Corridors', location = ph_location_label(ph_label = "Big Title"))

I tried deleting and recreating master on template, changing r code to produce other layouts in the same master, changing r code to produce other placeholders in the same layout

csbu00
  • 1
  • 1

0 Answers0