askForPassword Ask the user for a password interactively callFun Call an RStudio API function createProjectTemplate Create a Project Template document_position Create a Document Position document_range Create a Range file-dialogs Select a File / Folder getActiveProject Path to Active RStudio Project getThemeInfo Retrieve Themes getVersion Return the current version of the RStudio API hasColorConsole Check if Console Supports ANSI Color Escapes hasFun Exists/get for RStudio functions isAvailable Check if RStudio is running. navigateToFile Navigate to File persistent-values Persistent Keys and Values previewRd Preview an Rd topic in the Help pane primary_selection Extract the Primary Selection projects Open a Project in RStudio readPreference Read Preference restartSession Restart the R Session rstudio-documents Interact with Documents open in RStudio rstudio-editors Retrieve Information about an RStudio Editor savePlotAsImage Save Active RStudio Plot as an Image sendToConsole Send Code to the R Console showDialog Show Dialog Box showPrompt Show Prompt Dialog Box showQuestion Show Question Dialog Box sourceMarkers Display Source Markers terminalActivate Activate Terminal terminalBuffer Get Terminal Buffer terminalBusy Is Terminal Busy terminalClear Clear Terminal Buffer terminalContext Retrieve Information about RStudio Terminals terminalCreate Create a Terminal terminalExecute Execute Command terminalExitCode Terminal Exit Code terminalKill Kill Terminal terminalList Get All Terminal Ids terminalRunning Is Terminal Running terminalSend Send Text to a Terminal terminalVisible Get Visible Terminal updateDialog Updates a Dialog Box versionInfo RStudio Version Information viewer View local web content within RStudio writePreference Write Preference