Add a slide into a pptx presentation.

add_slide(x, layout = "Title and Content", master = "Office Theme")

Arguments

x

an rpptx object

layout

slide layout name to use

master

master layout name where layout is located

Examples

my_pres <- read_pptx()
layout_summary(my_pres)
#>              layout       master
#> 1       Title Slide Office Theme
#> 2 Title and Content Office Theme
#> 3    Section Header Office Theme
#> 4       Two Content Office Theme
#> 5        Comparison Office Theme
#> 6        Title Only Office Theme
#> 7             Blank Office Theme
my_pres <- add_slide(my_pres,
  layout = "Two Content", master = "Office Theme")