R LSP Client for VS Code, powered by the R Language Server.
This package exposes the following configuration options:
r.rpath.windows,r.rpath.mac,r.rpath.linux: Path to R binary for launching the R Language Server package (see below). Examples:/usr/bin/R(Linux/macOS),C:\\Program Files\\R\\R-3.5.2\\bin\\x64\\R.exe(Windows). If the settings are left blank (default), then the R path will be detected from Windows registry andPATHenvironment variable. It should be vanilla R rather than radian console.r.lsp.args: The command line arguments to use when launching R Language Server. Example:--vanillato disable loading startup scripts such as.RprofileandRprofile.site.r.lsp.debug: Enable debugging traces. Defaults tofalse. Set this totrueif you are having trouble getting the Language Server working.r.lsp.diagnostics: Enable linting of R code, using the lintr package. Defaults totrue. To disable this, you must have at least version 0.2.7 of the R Language Server installed.
Note that r.lsp.path will be deprecated in favor of r.rpath.* settings.
vscode-r-lsp requires the R Language Server, a package that runs in R.
It can be installed from CRAN:
install.packages("languageserver")The development version of languageserver can be installed from GitHub, using the devtools package:
devtools::install_github("REditorSupport/languageserver")MIT License. See the license for more details.