MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R

github.com/REditorSupport/vscode-R @v2.8.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.8.8 ↗ · + Follow
749 symbols 1,764 edges 53 files 3 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

R Extension for Visual Studio Code

Badge

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.

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 or extensions are recommended to enhance the experience of using R in VS Code:

  • radian: A modern R console that corrects many limitations of the official R terminal and supports many features such as syntax highlighting and auto-completion.

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

  • httpgd: An R package to provide a graphics device that asynchronously serves SVG graphics via HTTP and WebSockets.

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

Features

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.

Extension points exported contracts — how you extend this code

HelpPanel (Interface)
(no doc) [1 implementers]
src/api.d.ts
Plot (Interface)
(no doc)
html/httpgd/index.ts
VsCode (Interface)
(no doc)
html/help/webviewMessages.d.ts
RTaskDefinition (Interface)
(no doc)
src/tasks.ts
RObjectElement (Interface)
(no doc)
src/completions.ts
RSelection (Interface)
(no doc)
src/selection.ts
GlobalEnv (Interface)
(no doc)
src/session.ts
AddinItem (Interface)
(no doc)
src/rstudioapi.ts

Core symbols most depended-on inside this repo

extendSelection
called by 256
src/selection.ts
config
called by 46
src/util.ts
get
called by 43
src/rmarkdown/preview.ts
get
called by 39
src/util.ts
refresh
called by 32
src/api.d.ts
runTextInTerm
called by 27
src/rTerminal.ts
dispose
called by 17
src/api.d.ts
show
called by 16
src/plotViewer/index.ts

Shape

Method 283
Function 276
Class 105
Interface 80
Enum 5

Languages

TypeScript100%

Modules by API surface

src/helpViewer/treeView.ts75 symbols
src/plotViewer/index.ts53 symbols
src/util.ts52 symbols
src/helpViewer/helpPreviewer.ts34 symbols
src/helpViewer/index.ts32 symbols
src/rmarkdown/preview.ts31 symbols
src/session.ts30 symbols
src/rmarkdown/chunks.ts30 symbols
src/workspaceViewer.ts29 symbols
src/helpViewer/packages.ts28 symbols
src/rstudioapi.ts26 symbols
src/liveShare/index.ts26 symbols

For agents

$ claude mcp add vscode-R \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact