This VS Code extension provides support for the R programming language, including an R language service based on code analysis, interaction with R terminals, viewers for data, plots, workspace variables, and help pages, package management, and R Markdown support.
Documentation: https://reditorsupport.github.io/vscode-R/
See Getting Started for an overview, and the installation guides for Windows, macOS, and Linux for detailed setup instructions.
-
Install R (>= 3.4.0).
-
Install the languageserver package from R.
install.packages("languageserver") -
Install this extension from the VS Code Marketplace or the Open VSX Registry. It requires VS Code 1.101.0 or later.
-
Create an R file and start coding! (Click Yes if prompted to install sess.)
Daily pre-releases are also available: choose Switch to Pre-Release Version on the extension's page in VS Code. See release channels for details and development builds.
-
If you have a question, need help with setup or troubleshooting, or are unsure whether you have found a bug, please start a Q&A discussion.
-
If you have an idea for a new feature or behavior change, please start an Ideas discussion.
-
If you find a reproducible problem with the extension, please check the existing issues and then file a bug report. Include the extension version and reproduction steps.
-
Contributions are always welcome! Please see the contributing guide for more details.
The R and R Markdown syntaxes are located in a sibling package, vscode-R-syntax. See the changelog for changes in each release.