Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable R-linting in VScode

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

enter image description here

like image 440
CutePoison Avatar asked Nov 15 '22 19:11

CutePoison


1 Answers

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.

like image 101
Kun Ren Avatar answered Jan 05 '23 00:01

Kun Ren