replace_placeholder: Replace placeholder strings in docx document

View source: R/report.R

replace_placeholderR Documentation

Replace placeholder strings in docx document

Description

Replace placeholder strings in docx document

Usage

replace_placeholder(
  doc,
  placeholder_text = "PLACEHOLDER_TAB",
  replacement_text = "\t"
)

Arguments

doc

an rdocx object

placeholder_text

Character with the placeholder to be replaced, defaults to "PLACEHOLDER_TAB"

replacement_text

Character with replacement text, defaults to "\t"

Value

Side effects

Examples

## Not run: 
replace_placeholder(
   path = "test.docx",
   new_path = "test_replaced.docx"
)

## End(Not run)

RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.