rvisual-studio-codelanguage-server-protocollintr

lines should not be more than 80 characters. lint_length_linter; Use <-, not =, for assignment.assignment_linter


I use R in vscode, it throw many notes with blue wavy underlines, such as 'lines should not be more than 80 characters. lint_length_linte', 'Use <-, not =, for assignment.assignment_linter'.

Creating a '.lintr ' file in the project work for this problem, see details. And turning off the option Lsp:Diagnostics also solve it. But I want to know how to set global settings working for all R projects through modifing certain configure files( like r.json, .Rprofile and so on). I tried but failed.

some of the problems detected by lintr enter image description here


Solution

  • Putting a global lintr config file at ~/.lintr will effect globally.