read_pptx: Read data from a Modern PowerPoint File

Description Usage Arguments Details Value Examples

Description

Read data from a Modern PowerPoint File

Usage

1
read_pptx(pptx, tables = T, drawings = T, diagrams = T)

Arguments

pptx

The .pptx file to read

tables

Should tables be processed from the document?

drawings

Should drawings be processed from the document?

diagrams

Should diagrams be processed from the document?

Details

Only accepts one file at a time and only .pptx files. Modifying file extensions will not work.

The returned list contains named lists of the elements on the slide, each element of which is either a data.frame or a matrix containing the text and minor details about the structure on the page.

Data frames will contain the text in addition to the following columns: "Bulleted" indicates if the text is part of a bulleted or numbered list on the slide. "Hierarchy" indicates the tabbed depth of the element in a bulleted or numbered list (NA if not bulleted).

Alternatively, returns a matrix for tables on the slide.

Value

List containing slide elements.

Examples

1
2
read_pptx(system.file('extdata','example.pptx',package='readOffice'))
read_pptx(system.file('extdata','example.pptx',package='readOffice'),diagrams=FALSE)

bmewing/readOffice documentation built on May 12, 2019, 10:27 p.m.