REditorSupport / REditorSupport/vscode-R

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

Open
#1,640 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the missing commands with R installed on macOS and only R Editor Support and R Tools enabled. Check the Command Palette and R-file context menu, then compare the available commands with the expected terminal and R Interactive Window options. Done means both run commands are available and execute the selected or current R code.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.