Returns information about an RStudio editor.
1 2 3 4 5
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.
list with elements:
||The document ID.|
||The path to the document on disk.|
||The contents of the document.|
getActiveDocumentContext function was added with version 0.99.796
of RStudio, while the
getSourceEditorContext and the
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.