R language support, R terminals, data and plot viewers, and R Markdown in VS Code
open sourceMITfree
vscode-R is a VS Code extension for the R programming language. It gives an R language service through the R languageserver package (completion, signatures, outline, formatting, go-to-definition, diagnostics and references), sends code to R terminals (several at once, and on remote servers), and has an experimental R Interactive mode with persistent sessions. Viewers show workspace variables, help pages, data frames (with Arrow tables and Polars DataFrames), plots through httpgd or jgd, htmlwidgets and Shiny apps. It also runs devtools commands for package development, installs and removes packages, supports R Markdown chunks and preview, runs supported RStudio add-ins, and works over SSH, in containers and in WSL. MIT licensed.
Problems it solves
- write and run R code in VS Code instead of RStudio
- view my R data frames and plots inside VS Code
- work on an R package in VS Code with devtools
Features
- R language service: completion, signatures, outline, formatting, definitions, diagnostics, references
- send code to R terminals, including on remote servers
- workspace, help, data, plot, webpage and Shiny viewers
- package development with devtools commands
- R Markdown chunk navigation, execution and preview
- RStudio add-in support
- Remote Development over SSH, containers and WSL
Limitations
Alternatives
The same job
These do what R Extension for Visual Studio Code does.
- Positron A free IDE purpose-built for data science in Python and R
- Markdown Preview Enhanced A Markdown preview for VS Code with scroll sync, diagrams, math, code chunks and export to PDF, HTML and ebooks
- code-server VS Code in the browser
- VSCodium VS Code binaries without Microsoft's telemetry or licence
- Project Manager for Java Browse, create and manage Java projects in VS Code
- Visual Studio Code Remote Development Open any folder in a container, on a remote machine or in WSL with VS Code