move_slide
From officer v0.3.4
by David Gohel
move a slide
move a slide in a pptx presentation
Usage
move_slide(x, index, to)
Arguments
- x
rpptx object
- index
slide index, default to current slide position.
- to
new slide index.
Note
cursor is set on the last slide.
Examples
# NOT RUN {
x <- read_pptx()
x <- add_slide(x, layout = "Title and Content",
master = "Office Theme")
x <- ph_with_text(x, type = "body", str = "Hello world 1")
x <- add_slide(x, layout = "Title and Content",
master = "Office Theme")
x <- ph_with_text(x, type = "body", str = "Hello world 2")
x <- move_slide(x, index = 1, to = 2)
# }
Community examples
Looks like there are no examples yet.