Replace text in selection.

rs_replace_in_selection(pattern, replacement, context = get_context())

Arguments

pattern

(character) A fixed pattern of text to be replaced (not a regular expression).

replacement

(character) The replacement text.

context

Object with context of active R Studio document (class document_context).