I use R in vscode, when the line has more than 80 characters , it will throw a note with a wavy line : Lines should not be more than 80 characters. line_length_linter. But i do not find it in lint for R to chage it. Moreover , in the setting.json, I do not know the name of parameter configuration though i search it in the internet.enter image description here
Asked
Active
Viewed 5,332 times
2 Answers
11
Just faced the same issue. I found a workaround suggested for Atom IDE and it works for VSCode too.
Create a .lintr file in your project folder and add this one line:
linters: with_defaults(line_length_linter=line_length_linter(100))
For more configuration options, check the lintr package documentation.

Vidsaat
- 111
- 3
-
1This almost worked for me, however I had to use: `linters: linters_with_defaults(line_length_linter=line_length_linter(100))` – fry Dec 02 '22 at 09:24
0
I turned it off completely in the .linter file with: lint_config: with_defaults(line_length_linter = NULL)
.

Diego Garaialde
- 26
- 2