microsoft / RTVS

R Tools for Visual Studio.
MIT License
390 stars 118 forks source link

Feature Request: Linting #4265

Closed MovGP0 closed 6 years ago

MovGP0 commented 6 years ago

There should be support for R linting. There is already a project for it:

https://github.com/jimhester/lintr

Neil-Schneider commented 6 years ago

There is already a linter implementation, but integration with lintr would be great. We have team members that code in VS, Rstudio and Atom, so being able to utilize the same lintr profile across the different IDEs would be helpful.

But here is how you access the current linter in RTVS.

R Tools > Editor Options...

Opens this windows with linter options for .R programs.

image

MikhailArkhipov commented 6 years ago

Settings above pretty much cover lintr and it runs as you type in a background. You can still run lintr if you want manually but you won't get squiggles and lintr runs on files so the document must be saved first.

Feel free to open issue if you feel something important is missing that is covered in lintr but not here.