move_slide: Move a slide

View source: R/pptx_slide_manip.R

move_slideR Documentation

Move a slide

Description

Move a slide in a pptx presentation.

Usage

move_slide(x, index = NULL, to)

Arguments

x

an rpptx object

index

slide index, default to current slide position.

to

new slide index.

Note

cursor is set on the last slide.

See Also

read_pptx()

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

Examples

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)

officer documentation built on Oct. 10, 2024, 1:06 a.m.