Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Editing text of an existing pptx in officer R package

Tags:

r

officer

I just want to know if there is a way to EDIT TEXT of an existing powerpoint presentation with officer package in R.

The base presentation must be edited with updated values monthly, while the images inside remains the same. I know I can locate the attributes of that text values with functions like layout_summary(), layout_properties(), slide_summary(), etc., but can't get a way to edit its values.

Thanks in advance,

like image 887
Lucas Mignone Avatar asked Sep 05 '25 19:09

Lucas Mignone


1 Answers

I solved this problem by creating a version of the powerpoint slides that contains the images and layout that I want, and any text that stays the same between each version (but does not include any of the text that needs to be edited). Then read that template version in and add text to it using any of the ph_with functions. This allows you to keep images an formatting, and control text.

like image 114
clairekelley Avatar answered Sep 08 '25 11:09

clairekelley