REditorSupport / REditorSupport/vscode-R
R term not works (attached) with renv
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
I'm using renv and set up r.libPaths. The R language server works well. However, in the renv enviroment, it reports
VSCode R Session Watcher requires jsonlite. Please install manually in order to use VSCode-R., and the R term is not attached. I can't find variables in Global Enviroment, and it fails to attach the term. The jsonlite package must be installed in the renv environment.
By the way, it reports Install package httpgd to use vscode-R with httpgd! once after I installed jsonlite.
Can you fix this issue by yourself? (We appreciate the help)
No
Environment (please complete the following information):
- OS: Windows 10/11
- VSCode Version: 1.92.2
- R Version: 4.4.1
- vscode-R version: 2.8.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with renv and r.libPaths, focusing on the VSCode R Session Watcher and R terminal behavior described in the report. Check how jsonlite and httpgd availability is handled in the renv environment. Done means the R terminal attaches, Global Environment variables are available, and the missing-package warnings no longer block the workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100