Utility functions for reading the current selected text and writing to the current cursor position respectively, by virtue of the
These functions are used in the source code for add-ins in the
1 2 3
A character vector, each element of which is a line of text to be written to the current cursor position.
read_selected_text() function returns a character containing the active selected text in the RStudio IDE.
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.