You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grant McDermott edited this page Oct 2, 2025
·
6 revisions
R code linting (diagnostics) is provided by lintr via language server and is enabled by default. It provides syntax error warnings as well as style guidelines.
To disable diagnostics, you might add the following to the VS Code settings:
{
"r.lsp.diagnostics": false
}
However, you will not be notified if syntax errors in the code are detected.
Customize
The default linting behaviour is based on the tidyverse style guide, which you may not find to your liking. To customize, you should create/edit the global lintr config file at ~/.lintr. Alternatively, you can also create/edit a project-specific lintr config file at ${workspaceFolder}/.lintr. Some example of customized lintr files are provided below.