Function length will return the number of slides.

# S3 method for rpptx
length(x)

Arguments

x

an rpptx object

See also

Other functions for reading presentation informations: annotate_base(), color_scheme(), doc_properties(), layout_properties(), layout_summary(), plot_layout_properties(), slide_size(), slide_summary()

Examples

my_pres <- read_pptx()
my_pres <- add_slide(my_pres)
my_pres <- add_slide(my_pres)
length(my_pres)
#> [1] 2