| rstudio-editors | R Documentation |
Returns information about an RStudio editor.
getActiveDocumentContext()
getSourceEditorContext(id = NULL)
getConsoleEditorContext()
id |
The ID of a particular document, as retrieved by |
The selection field returned is a list of document selection objects.
A document selection is just a pairing of a document range, and the
text within that range.
A list with elements:
id | The document ID. |
path | The path to the document on disk. |
contents | The contents of the document. |
selection | A list of selections. See Details for more information. |
The getActiveDocumentContext function was added with version 0.99.796
of RStudio, while the getSourceEditorContext and the getConsoleEditorContext
functions were added with version 0.99.1111.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.