on_slide

0th

Percentile

change current slide

change current slide index of an rpptx object.

Usage
on_slide(x, index)
Arguments
x

rpptx object

index

slide index

Aliases
  • on_slide
Examples
# NOT RUN {
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- on_slide( doc, index = 1)
doc <- ph_with_text(x = doc, type = "title", str = "First title")
doc <- on_slide( doc, index = 3)
doc <- ph_with_text(x = doc, type = "title", str = "Third title")

file <- tempfile(fileext = ".pptx")
print(doc, target = file )
# }
Documentation reproduced from package officer, version 0.3.5, License: GPL-3

Community examples

Looks like there are no examples yet.