Description Usage Arguments Value Examples
Gets either the selected text, or up to len
lines
of text from the current cursor position in the RStudio editor.
1 | getSource(len = 100)
|
len |
How many lines to get if none are selected. |
A character vector containing the text, with attribute
named "start"
holding the starting position of
the section in the source editor.
1 2 | if (rstudioapi::isAvailable())
getSource()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.