Skip to contents

Controls how add_* functions behave when an existing element on the slide matches the new one (as determined by the active match function).

Usage

set_replacement_strategy(strategy = c("add", "replace", "skip"))

Arguments

strategy

One of "add", "replace", or "skip".

Value

The strategy string, invisibly.

Details

  • "add" (default): always create a new element; match function is never called.

  • "replace": delete the matched element, then create a fresh one. If no match is found, a new element is created.

  • "skip": leave the matched element untouched and skip creation. If no match is found, a new element is created.