Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bind or merge multiple powerpoints in r

I have been using officer package to create the respective PowerPoint decks, however at this moment, i would like to merge/ bind them all as one slide deck and was not able to figure out. Can someone guide me if there any package that helps to merge multiple PowerPoint decks into one.

like image 333
user86752 Avatar asked Apr 27 '20 21:04

user86752


People also ask

How do I combine multiple powerpoints into one?

Open your main presentation. Select the "Review" tab at the top function bar. Click on the "Compare" function to find your other source presentation. Browse for the presentation you want to merge with and press "Merge" to combine the slides from both presentations.

How do I merge slides from one PowerPoint presentation to another?

On the Home tab, under Slides, click the arrow next to New Slide, and then click Insert Slides from Other Presentation. Select the presentation that you want to insert, click Select slides to insert, and then click Insert. Click the slides that you want, and then click Insert.

Can powerpoints be merged?

If you've ever needed to integrate slides from different presentation, PowerPoint offers several options to help you merge PowerPoint presentations. You can insert slides individually, import entire presentations, drag and drop slides, or simply merge PowerPoint presentations by combining separate PPT files.

How do I merge PowerPoint presentations without losing formatting?

Select the “Keep Source Formatting” check box at the bottom of the Reuse Slides pane. Right-click on any of the slides in the Reuse Slides pane. Click “Insert All Slides” to combine slides from the second presentation with the first and maintain the formatting from each presentation.


1 Answers

I believe currently there are no functions or packages that do this in R, so I'll suggest you a few possible solutions that come to mind.

1: I believe you could use read_pptx() to read, say, a deck1 and a deck2 files. Then, loop through the slide indexes of deck2, and use those values to add_slide() into deck1. I think there's a function in officer called pptx_summary(), which converts a pptx R object into a tibble, but I'm not sure you could convert a tibble back to a pptx R object.

2: You could convert pptx files into pdf files, and use pdftools to join them.

like image 111
eduardokapp Avatar answered Sep 22 '22 08:09

eduardokapp