Read a single slide as xml
read_slide(pptx, index, error_call = current_env())A PowerPoint wrapped in a <pptx_container> object. see load_pptx()
slide index
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.
The slide, as read by xml2::read_xml
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>