officer (version 0.3.15)

move_slide: move a slide

Description

move a slide in a pptx presentation

Usage

move_slide(x, index, to)

Arguments

x

an rpptx object

index

slide index, default to current slide position.

to

new slide index.

See Also

Other functions slide manipulation: add_slide(), on_slide(), remove_slide()

Examples

Run this code
# NOT RUN {
x <- read_pptx()
x <- add_slide(x)
x <- ph_with(x, "Hello world 1", location = ph_location_type())
x <- add_slide(x)
x <- ph_with(x, "Hello world 2", location = ph_location_type())
x <- move_slide(x, index = 1, to = 2)
# }

Run the code above in your browser using DataCamp Workspace