question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add "Create .lintr" command

See original GitHub issue

How about adding a command to add a .lintr file to the workspace, similar to the command that already exists to add .gitignore? (Perhaps a function in the {lintr} or {languageserver} package would be more appropriate ?)

When I used vscode-R and R LSP for the first time, I struggled a lot because I did not know how to write a .lintr file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
renkun-kencommented, Jul 21, 2021

Thanks for raising this. It is indeed important to make things easier for new users.

Similar:

  • Edit user ~/.Rprofile
  • Edit project .Rprofile
  • Edit user ~/.lintr
  • Edit project .lintr
1reaction
AshesITRcommented, Jun 19, 2022

We now have lintr::use_lintr() to help create a dummy file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lintr - README
lintr provides static code analysis for R. It checks for adherence to a given style, identifying syntax errors and possible semantic issues, then...
Read more >
Editor setup - lintr
In order to show the “Markers” pane in RStudio: Menu “Tools” -> “Global Options…”, a window with title “Options” will pop up. In...
Read more >
Linting scripts in R - Kaggle
This kernel shows you how to use lintr to check the code in a utility script you've added to your kernel. A linter...
Read more >
Setting up lintr with CI - Stack Overflow
My project is a book so i don't need package build checks, but only enforcing style since there are serveral authors. I've read...
Read more >
lintr
Simply install linter-lintr from within Atom or on the command line with: ... With the following command, you can create a configuration file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found