PPT.ReplaceTextByText: Replace matching text by text

View source: R/text.R

PPT.ReplaceTextByTextR Documentation

Replace matching text by text

Description

Looks through all shapes and finds a shape with matching text pattern. The text in the shape is replaced.

Usage

PPT.ReplaceTextByText(ppt, what, replace, ...)

Arguments

ppt

The ppt object as used in R2PPT.

what

Text pattern to match against.

replace

Text to replace pattern with.

...

Not evaluated.

Examples

## Not run: 
  
  # replace text on slide
  ppt <- PPT.Open("inst/template.pptx", method="RDCOMClient")

  what <- "[[tag 1]]"
  replace <- "This has been replaced"
  PPT.ReplaceTextByText(ppt, what, replace)

## End(Not run)

markheckmann/R2PPTaddons documentation built on Oct. 16, 2023, 8:03 p.m.