View source: R/rs_replace_in_selection.R
rs_replace_in_selection | R Documentation |
Replace text in selection.
rs_replace_in_selection(
pattern,
replacement,
fixed = TRUE,
keep_selected = TRUE,
selection = c("all", "first", "last"),
context = rs_get_context()
)
rs_replace_selection(
replacement,
keep_selected = TRUE,
selection = c("all", "first", "last"),
context = rs_get_context()
)
select_correct_range(old_text, new_text, old_range, id = NULL)
pattern |
(character) |
replacement |
(character) |
fixed |
(logical) |
keep_selected |
(logical) |
selection |
(string) |
context |
(class |
old_text |
(character) Original text. |
new_text |
(character) Text after correction. |
old_range |
|
id |
Document ID. See |
select_correct_range()
correctly adjust current selection.
base::gsub()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.