Safely Access the RStudio API

Access the RStudio API (if available) and provide informative error messages when it's not.


  • Add sendToConsole function

  • Add APIs for setting cursor position in document

  • Add askForPassword function

  • Add getActiveProject function

  • Add API methods for interacting with a document open in RStudio: 'insertText()', 'modifyRange()' and 'getActiveDocumentContext()'.
  • Add stub and documentation for sourceMarker function
  • Compatibility with calling conventions for RStudio v0.99

  • Stubs and documentation for versionInfo, previewRd, and viewer functions

Initial release to CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.