vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

R Editor Support / R Tools: Missing "Run Selection/Line in Active Terminal" and "Run in R Interactive Window" options in VS Code

Open moodvsmodel opened this issue 5 months ago • 1 comments

R is installed and working on my system (macOS, R 4.5-x86_64). R path is correctly set in VS Code settings. Only "R Editor Support" and "R Tools" extensions are enabled. VS Code and extensions are updated to the latest versions. I can run R code manually in the integrated terminal. However, I do not see "Run Selection/Line in Active Terminal" or "Run in R Interactive Window" in the Command Palette or right-click menu. The only R command available is "R: Launch RStudio addins," which fails with "No active R terminal session, attach one to use RStudio addins." Workspace and global settings have been checked; issue persists across new workspaces. Steps to Reproduce:

Install R and set up VS Code with R Editor Support and R Tools. Open an R file. Try to access "Run Selection/Line in Active Terminal" or "Run in R Interactive Window" via Command Palette or right-click menu. Expected Behavior:

Should be able to run R code selections directly from the editor. Should see R Interactive Environment options in Command Palette. Actual Behavior:

Options are missing; only "R: Launch RStudio addins" is available, which does not work. Environment:

macOS VS Code (latest) R 4.5-x86_64 R Editor Support (latest) R Tools (latest)

moodvsmodel avatar Sep 02 '25 14:09 moodvsmodel

I think this is duplicate of #482 and #731

eitsupi avatar Sep 02 '25 14:09 eitsupi