wdReplaceTextByText: Searches and replaces a string

Description Usage Arguments Value TODO Examples

View source: R/addons.R

Description

This function replaces a piece of text with another text.

Usage

1
wdReplaceTextByText(find = "", text, wdapp = .R2wd)

Arguments

find

A string.

text

Replacement text.

Value

Invisibly returns a pointer to the range object.

TODO

testing

Examples

1
2
3
4
5
file <- system.file("inst/template.docx", package = "R2wdaddons")
wdGet2(file)

# replace placeholder text
wdReplaceTextByText("[placeholder 4]", "SOME REPLACEMENT TEXT")

markheckmann/R2wdaddons documentation built on Sept. 13, 2019, 8:40 a.m.