Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vscode-R

> 开发工具
Open source

R Extension for Visual Studio Code

1.2K stars0 likes4 views
WebsiteGitHub

About

R Extension for Visual Studio Code

R Extension for Visual Studio Code

This VS Code extension provides support for the R programming language, including features such as R language service based on code analysis, interacting with R terminals, viewing data, plots, workspace variables, help pages, managing packages, and working with R Markdown documents.

The R and R Markdown syntaxes are located in a slibing package vscode-R-syntax.

Go to the wiki to view the documentation of the extension.

What's new in 3.0.0-rc

Version 3.0.0 introduces a major architectural shift for session watching:

  • sess R Package: Replaces the legacy file-based IPC with a modern, in-memory WebSocket architecture using JSON-RPC 2.0.
  • Better Performance and Reliability: No more OS-level file watchers. Communication is faster and more robust.
  • Automatic Installation: The extension will prompt you to install the sess package when you start an R session if it is not available.

See the sess package README for more details on the protocol.

Getting started

  1. Install R (>= 3.4.0) on your system. For Windows users, Writing R Path to the registry is recommended in the installation.

  2. Install languageserver in R.

    r
    install.packages("languageserver")
  3. Install the R extension for VS Code from the VS Code Extension Marketplace or the Open VSX Registry.

  4. Create an R file and start coding.

The following software are recommended to enhance the experience of using R in VS Code:

  • Interactive plot backends (install one for a better R plotting experience):

    • jgd: Lightweight JSON graphics device with native vscode-R integration.
    • httpgd: SVG-based graphics device served via HTTP and WebSockets.
  • arf: Modern R console with many features: syntax highlighting, fuzzy history search, multiline editing, vi/emacs keybindings, R version switching, etc. Successor to radian written in Rust.

  • VSCode-R-Debugger: A VS Code extension to support R debugging capabilities.

Go to the installation wiki pages (Windows | macOS | Linux) for more detailed instructions.

Features

  • Snippets for R and R Markdown.

  • R Language Service: Code completion, function signature, symbol highlight, document outline, formatting, definition, diagnostics, references, and more.

  • Interacting with R terminals: Sending code to terminals, running multiple terminals, working with remote servers.

  • Package development: Build, test, install, load all and other commands from devtools.

  • Keyboard shortcuts: Built-in and customizable keyboard shortcuts.

  • Workspace viewer: Environment pane to show global variables in the attached R session.

  • Help pages viewer: Viewing R help pages and searching help topics.

  • Package management: Installing and removing R packages.

  • Session symbol hover and completion.

  • Data viewer: Viewing data.frame or matrix in a grid or a list structure in a treeview.

  • Plot viewer: Interactive plot viewer with support for jgd and httpgd backends, plus a standard PNG/SVG fallback.

  • Webpage viewer: Viewing htmlwidgets such as interactive graphics and visual profiling results.

  • Browser viewer: Viewing interactive shiny apps.

  • R Markdown support: R Markdown chunk highlighting, chunk navigation, execute commands, and preview.

  • RStudio add-in support: Run supported RStudio add-ins in VS Code with a live R session.

  • Full support of Remote Development via SSH, Containers and WSL.

Questions, issues, feature requests, and contributions

  • If you have a question about accomplishing something in general with the extension, please ask on Stack Overflow.

  • If you find a problem or have a feature request with the extension, please find out if there is a current issue you may upvote or otherwise file an issue.

  • Contributions are always welcome! Please see the contributing guide for more details.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptgitignorerrmarkdownsnippets

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具