read_pptx {officer}R Documentation

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 class 'rpptx'
print(x, target = NULL, ...)

## S3 method for class 'rpptx'
length(x)

slide_size(x)

Arguments

path

path to the pptx file to use as 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.

slides width and height

Function slide_size will return the size of slides.

Examples

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

[Package officer version 0.3.5 Index]