read_pptx: open a connexion to a 'PowerPoint' file

Description Usage Arguments number of slides slides width and height Examples

View source: R/read_pptx.R

Description

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

Usage

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

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

davidgohel/oxbase documentation built on Nov. 25, 2018, 7:21 p.m.