`no_tab_linter` error in one R script, but not in others with unequal indent.
I was reading someone else's codes, and in one of the scripts, a linter error appeared in the entire script and suggested not to use tab. The auto indent space is 4.
So I started to test it with the following codes in 3 files.
Simple test on one script with lots of no_tab_linter error.

In another file without no_tab_linter error, and the auto indent space is 2.

I also used a completely new script, and this time the auto indent space is 4 without linter error.

This is the first time I encounter this. What could be the possible reason?
Could it be a problem of the lintr package?
https://github.com/r-lib/lintr#available-linters
Does the last file contain tabs or 4 spaces?
If it's 4 spaces, you'll probably want r-lib/lintr#497 to be merged so a new indentation_linter() allows you to control indentation style.
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.