move_slide: move a slide

Description Usage Arguments Note Examples

View source: R/read_pptx.R

Description

move a slide in a pptx presentation

Usage

1
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

1
2
3
4
5
6
7
8
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)

officer documentation built on July 24, 2018, 9:02 a.m.