|
3 | 3 | [](https://aka.ms/vsls) |
4 | 4 |
|
5 | 5 | This [VS Code](https://code.visualstudio.com/) extension provides support for the [R programming language](https://www.r-project.org), including features such as |
6 | | -extended syntax highlighting, interacting with R terminals, viewing data, plots, workspace variables, help pages, managing packages, and working with [R Markdown](https://rmarkdown.rstudio.com/) documents. |
| 6 | +extended syntax highlighting, 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](https://rmarkdown.rstudio.com/) documents. |
7 | 7 |
|
8 | 8 | Go to the [wiki](https://github.com/REditorSupport/vscode-R/wiki) to view the documentation of the extension. |
9 | 9 |
|
10 | 10 | ## Getting started |
11 | 11 |
|
12 | 12 | 1. [Install R](https://cloud.r-project.org/) (>= 3.4.0) on your system. For Windows users, Writing R Path to the registry is recommended in the installation. |
13 | 13 |
|
14 | | -2. Install [`jsonlite`](https://github.com/jeroen/jsonlite) and [`rlang`](https://github.com/r-lib/rlang) packages in R. |
| 14 | +2. Install [`languageserver`](https://github.com/REditorSupport/languageserver) in R. |
15 | 15 |
|
16 | 16 | ```r |
17 | | - install.packages(c("jsonlite", "rlang")) |
| 17 | + install.packages("languageserver") |
18 | 18 | ``` |
19 | 19 |
|
20 | 20 | 3. Install the [R extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.r). |
21 | 21 |
|
22 | 22 | 4. Create an R file and start coding. |
23 | 23 |
|
24 | | -Note that the above steps only provide basic code editing functionalities and features of interacting with R sessions. To get full R development experience such as code completion, linting, formatting, debugging, etc., go to the installation wiki pages ([Windows](https://github.com/REditorSupport/vscode-R/wiki/Installation:-Windows) | [macOS](https://github.com/REditorSupport/vscode-R/wiki/Installation:-macOS) | [Linux](https://github.com/REditorSupport/vscode-R/wiki/Installation:-Linux)) for detailed instructions of installing the following recommended software and extensions: |
| 24 | +The following software or extensions are recommended to enhance the experience of using R in VS Code: |
25 | 25 |
|
26 | 26 | * [radian](https://github.com/randy3k/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. |
27 | 27 |
|
28 | | -* [languageserver](https://github.com/REditorSupport/languageserver): An R package that implements the Language Server Protocol for R to provide a wide range of language analysis features such as auto-completion, function signature, documentation, symbol highlight, document outline, code formatting, symbol hover, diagnostics, go to definition, find references, etc. |
29 | | - |
30 | | -* [vscode-r-lsp](https://marketplace.visualstudio.com/items?itemName=REditorSupport.r-lsp): A VS Code extension of R LSP Client to communicate between VS Code and R Language Server. |
31 | | - |
32 | 28 | * [VSCode-R-Debugger](https://github.com/ManuelHentschel/VSCode-R-Debugger): A VS Code extension to support R debugging capabilities. |
33 | 29 |
|
34 | 30 | * [httpgd](https://github.com/nx10/httpgd): An R package to provide a graphics device that asynchronously serves SVG graphics via HTTP and WebSockets. |
35 | 31 |
|
| 32 | +Go to the installation wiki pages ([Windows](https://github.com/REditorSupport/vscode-R/wiki/Installation:-Windows) | [macOS](https://github.com/REditorSupport/vscode-R/wiki/Installation:-macOS) | [Linux](https://github.com/REditorSupport/vscode-R/wiki/Installation:-Linux)) for more detailed instructions. |
| 33 | + |
36 | 34 | ## Features |
37 | 35 |
|
38 | 36 | * Extended syntax highlighting for R, R Markdown, and R Documentation. |
39 | 37 |
|
40 | 38 | * Snippets for R and R Markdown. |
41 | 39 |
|
| 40 | +* [R Language Service](https://github.com/REditorSupport/vscode-R/wiki/R-Language-Service): Code completion, function signature, symbol highlight, document outline, formatting, definition, refere |
| 41 | + |
42 | 42 | * [Interacting with R terminals](https://github.com/REditorSupport/vscode-R/wiki/Interacting-with-R-terminals): Sending code to terminals, running multiple terminals, working with remote servers. |
43 | 43 |
|
44 | 44 | * [Package development](https://github.com/REditorSupport/vscode-R/wiki/Package-development): Build, test, install, load all and other commands from devtools. |
|
0 commit comments