Read a single slide as xml

read_slide(pptx, index, error_call = current_env())

Arguments

pptx

A PowerPoint wrapped in a <pptx_container> object. see load_pptx()

index

slide index

error_call

The execution environment of a currently running function, e.g. caller_env(). The function will be mentioned in error messages as the source of the error. See the call argument of abort() for more information.

Value

The slide, as read by xml2::read_xml

Examples

ppt <- example_pptx()
read_slide(ppt, index = 1)
#> {xml_document}
#> <sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">
#> [1] <p:cSld>\n  <p:spTree>\n    <p:nvGrpSpPr>\n      <p:cNvPr id="1" name=""/ ...
#> [2] <p:clrMapOvr>\n  <a:masterClrMapping/>\n</p:clrMapOvr>