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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With