REditorSupport / REditorSupport/vscode-R

R workspace keep empty when used in VScode

Open
#1,608 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I tried to build R environment in VScode. But the workspace region still showed nothing when I created R dataframe.

What I've done:
I created a r_env environment on Linux server for R analysis. I've installed R packages including httpgd, languageserver and radian. The versions are as below:
r-base 4.4.3 h9c32bc2_0 conda-forge
r-httpgd 2.0.4 r44h93ab643_0 conda-forge
radian 0.6.13 pypi_0 pypi
packageVersion('languageserver')
[1] ‘0.3.16’

My settings.json is as below:
{
"r.alwaysUseActiveTerminal": true,
"r.bracketedPaste": true,
"r.rterm.option": [
"--r-binary=/mnt/data/userdata/zhangliyin/anaconda3/envs/r_env/bin/R",
"--no-site-file"
],
"r.plot.useHttpgd": true,
"r.rterm.linux": "/mnt/data/userdata/zhangliyin/anaconda3/envs/r_env/bin/radian",
"r.rpath.linux": "/mnt/data/userdata/zhangliyin/anaconda3/envs/r_env/bin/R",
"r.workspaceViewer.removeHiddenItems": true,
"r.workspaceViewer.showObjectSize": true
}

I read some of similar issues and tried mentioned solutions, but the problem still remains. I would really appreciate your help! Thanks a lot!
Image

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 empty workspace region using the provided settings.json, R environment, and dataframe example. Start by checking whether the R workspace viewer receives objects when r.workspaceViewer.removeHiddenItems and r.workspaceViewer.showObjectSize are enabled. Done means the created dataframe appears in the VS Code workspace viewer, with the relevant setup behavior documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.