Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Raven - R Language ServerNew to Visual Studio Code? Get it now.
Raven - R Language Server

Raven - R Language Server

Jonathan.Bearak

|
143 installs
| (0) | Free
R language server with cross-file intelligence — plus Stan and JAGS support (highlighting, completions, diagnostics, navigation)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Raven

Raven finds undefined variables and broken source() chains in R code, across files and as you type, without running your code. The same analysis drives completion, go to definition, find references, and hover. The extension also brings an R console, a debugger, plot, data, and help viewers, and R Markdown and Quarto preview, which step aside in Positron.

Here, analysis.R sources helpers.R, which defines clean_names():

source("helpers.R")

survey <- clean_names(read.csv("survey.csv"))
summary(servey$age)

plot(fit)
fit <- lm(age ~ income, data = survey)
$ raven check .
analysis.R:4:9 warning: servey is not defined [undefined-variable]
analysis.R:6:6 warning: fit is used before it is defined (defined on line 7) [undefined-variable]
2 issues (0 errors, 2 warnings, 0 infos, 0 hints, 0 notes)

VS Code showing a yellow squiggle under summarize_score and the hover message "summarize_score is not defined (undefined-variable)"

Raven knows clean_names came from helpers.R, so it doesn't flag it. It flags the typo and the plot that runs before the model exists. Style linters such as lintr and Jarl check how each line is written; Raven checks whether every name your code uses exists at that point, following source() across files, and it runs alongside them. In VS Code, the same warnings appear in the editor and the Problems panel as you type. No R session is involved, and the output above was produced with R turned off.

The VS Code debugger stopped at a breakpoint in an R function, with local variables avg and scores in the Variables view and the R console below

Get started

Open a folder with R files. Raven starts automatically and needs nothing else installed: the language server ships with the extension, and R is only needed for the console, debugger, and viewers. Getting started walks through a first example in two minutes.

To try new features early, click Switch to Pre-Release Version on this extension's page. Starting with 0.23, pre-releases have an odd minor version (0.23, 0.25) and stable releases an even one.

What you get

Analysis

  • Diagnostics: undefined and used-before-defined variables, syntax errors, missing files and packages.
  • Cross-file analysis: follows source() chains, including computed paths and {targets} pipelines.
  • Non-standard evaluation: dplyr columns, ggplot aesthetics, and other NSE are not flagged.
  • Package development, box and import modules, and .Rprofile are modeled too.
  • Linting: opt-in style rules, configured with raven.toml, .lintr, or VS Code settings.
  • Directives: # raven: comments for what static analysis can't see.

Navigation and editing

  • Completion, hover, go to definition, and find references, across files.
  • Document outline, indentation as you type, syntax highlighting, and snippets.
  • JAGS and Stan files get highlighting, completion, definitions, references, outlines, parse errors, and Stan undeclared-variable checks.

R session (VS Code)

  • An R console that runs your installed R, with code sent straight from the editor.
  • A debugger with breakpoints, stepping, variables, and the Debug Console.
  • Plot, data, and help viewers. The data viewer stays fast on millions of rows.

R Markdown, Quarto, and CI

  • Chunks with run buttons and full code intelligence, R Markdown preview and export, and Quarto preview and render.
  • raven check and raven lint for the command line and CI.

Works with vscode-R and Positron

Raven adds to the tools you already use. Its language server runs alongside vscode-R's; set r.lsp.enabled to false if you'd rather have only Raven's completions. Raven's console runs next to vscode-R's, and Raven asks which one to send code to. In Positron, Raven's console and viewers stay off, controlled by raven.rConsole.activation. Using Raven with other R tools explains each combination, and How Raven compares covers the differences.

Raven's style lints are opt-in and cover a subset of lintr's rules (what's not covered).

Settings and documentation

Every setting is under raven.*. See the settings reference, and the documentation hub for everything else, including Troubleshooting and running the same checks in CI. To search all pages, use the documentation site.

If you work with Stata, Raven's sibling project Sight brings the same cross-file model to Stata.

Acknowledgements

Raven builds on open-source work. It started as the language server extracted from Ark, tree-sitter-r parses your R code, its linter follows lintr, and its R grammars come from vscode-R-syntax. The acknowledgements describe the main projects Raven draws on and what it takes from each.

License

GPL-3.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft