rstudioapi: Safely Access the RStudio API

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

Install the latest version of this package by entering the following in R:
AuthorHadley Wickham [aut], JJ Allaire [aut, cre], Kevin Ushey [ctb], RStudio [cph]
Date of publication2016-06-27 07:00:05
MaintainerJJ Allaire <>
LicenseMIT + file LICENSE

View on CRAN


as.document_position Man page
as.document_range Man page
askForPassword Man page
callFun Man page
document-mutation Man page
document_position Man page
document_range Man page
editor-information Man page
findFun Man page
getActiveDocumentContext Man page
getActiveProject Man page
getConsoleEditorContext Man page
getSourceEditorContext Man page
getVersion Man page
hasFun Man page
insertText Man page
isAvailable Man page
is.document_position Man page
is.document_range Man page
modifyRange Man page
navigateToFile Man page
previewRd Man page
primary_selection Man page
sendToConsole Man page
setCursorPosition Man page
setDocumentContents Man page
setSelectionRanges Man page
sourceMarkers Man page
verifyAvailable Man page
versionInfo Man page
viewer Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.