officer (version 0.1.2)

read_pptx: open a connexion to a 'PowerPoint' file

Description

read and import a pptx file as an R object representing the document.

Usage

read_pptx(path = NULL)

# S3 method for rpptx print(x, target = NULL, ...)

# S3 method for rpptx length(x)

Arguments

path
path to the pptx file to use a base document.
x
an rpptx object
target
path to the pptx file to write
...
unused

number of slides

Function length will return the number of slides.

Examples

Run this code
read_pptx()
# write a rdocx object in a docx file ----
if( require(magrittr) ){
  read_pptx() %>% print(target = "out.pptx")
  # full path of produced file is returned
  print(.Last.value)
}

Run the code above in your browser using DataLab