The languageserver package helps you complete calls, follow definitions, and refactor R code in VS Code, Neovim, Emacs, and other editors.
center <- function(values) {
values - mean(values)
}
center(
Signature Help center(values)
Work with R code
| In your editor | Try it |
|---|---|
| Navigate and refactor | Follow a function into another file, find its callers, and rename a parameter. |
| Diagnose and format | Read a lint finding and format a selection with your project’s style. |
| Work in R Markdown and Quarto | Complete a name inside an executable R chunk in a document that mixes code and prose. |
| Configure the server | Look up a setting or supply a custom formatting style or backend. |
| Document R types | Use roxygen type hints to complete members and inspect method signatures. |
| Integrate an editor | Connect a notebook editor to an embedded R server. |
To check which features are available in an older installation, use the release compatibility guide. For help matching a package that ships these guides, open vignette("quick-start", package = "languageserver") or help("languageserver-settings", package = "languageserver") in R.