Description Usage Arguments Value
Utility functions for reading the current selected text and writing to the current cursor position respectively, by virtue of the rstudioapi.
These functions are used in the source code for add-ins in the RADins package.
1 2 3 |
text |
A character vector, each element of which is a line of text to be written to the current cursor position. |
The read_selected_text() function returns a character containing the active selected text in the RStudio IDE.
write_to_cursor returns NULL as it is the “side-effects” (i.e. inserting text in RStudio) that this function is useful for.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.