Reputation: 5355
In the picture below you can see a lot of linting-highlights e.g "Lines should not be more than 80 characters".
I'm trying to disable/modify these but I cannot figure out how. Using this guide I cannot find the path Tools > Options > Text Editor > R > Lint.
How do we change/disable this "help"?
Note, I'm using the R-extension by Yuki Ueda
Upvotes: 37
Views: 33036
Reputation: 4993
You might want to disable linting by setting the vscode setting "r.lsp.diagnostics": false
.
Or you might want to customize the list of linters to be used by editing ~/.lintr
to effect globally or {workspaceFolder}/.lintr
to effect project-wise. Read https://lintr.r-lib.org/articles/lintr.html#configuring-linters for the details of the lintr config file.
Upvotes: 35
Reputation: 619
This can happen if the file is not save with a .R file name extension, including if you're editing a file that has not been saved.
When saving the file, test saving as different extensions and see if that solves it.
If this does not solve it, try disabling the R-extension and reloading to confirm that R-extension is causing the problem.
Upvotes: -4