Description Usage Arguments Value Examples
An add-in helper function that deletes the code between the cursor and the desired string.
1 2 3 4 5 6 7 8 9 10 11 12 13 | remove_to_text(backTo, backward = TRUE)
pipe_backspace()
pipe_delete()
comma_backspace()
comma_delete()
smart_backspace()
smart_delete()
|
backTo |
The regex pattern to remove text to (character scalar). |
backward |
Whether to remove text before the cursor (default) or text after it (boolean scalar). |
The deleted code, invisibly (character scalar).
1 2 3 4 5 | # Type "mtcars %>% mutate(a = 1) %>% filter(cyl = 2)", & run the add-in function
# Type "c('apple', 'banana', cherry')", & run the add-in function
# Type "c(apple, banana, cherry)", & run the add-in function
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.