# lintr

> Static code analysis and style checking for R

Source: https://talira.ai/catalog/lintr-dp3s8zg8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / r](https://talira.ai/categories/languages/r)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [R infrastructure (r-lib)](https://talira.ai/orgs/r-lib.md)

lintr is a linter for [R](https://talira.ai/catalog/r-jj1se4aq.md): it checks code against a style, finds syntax errors and possible semantic problems, and reports them. Linters are chosen in a configuration file, it runs in continuous integration (usethis generates a GitHub Actions workflow) and on the fly in RStudio, VS Code, Emacs, Vim and Sublime Text, and it complements the styler package, which restyles code automatically.

## Links

- Website: https://lintr.r-lib.org/
- GitHub: https://github.com/r-lib/lintr
- Docs: https://lintr.r-lib.org/

## Problems it solves

- lint R code in CI
- enforce the tidyverse style guide in an R package
- find possible bugs in R scripts before running them

## Features

- style, syntax and semantic checks for R
- configurable linters
- GitHub Actions workflow through usethis
- editor integration for RStudio, VS Code, Emacs, Vim and Sublime Text

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.85, adoption 0.62, momentum 0.30, community 0.82, backing 0.30, extensibility 0.00.

- last commit 31 days ago
- 74 commits in the last 90 days
- latest release v3.4.0 4 months ago
- 1.3k GitHub stars
- 114 contributors
- backed by R infrastructure (r-lib)

## Alternatives

- [ShellCheck](https://talira.ai/catalog/shellcheck-301sfq95.md): A shell script static analysis tool
- [golangci-lint](https://talira.ai/catalog/golangci-lint-9jbqwb5g.md): Fast linters runner for Go
- [Clippy](https://talira.ai/catalog/clippy-bkdfvrsx.md): The official Rust linter: 800+ lints for common mistakes and unidiomatic code
- [RuboCop RSpec](https://talira.ai/catalog/rubocop-rspec-qqbxpw4a.md): RuboCop extension with cops for RSpec test files
- [Vale](https://talira.ai/catalog/vale-q6w53axq.md): A markup-aware linter for prose
- [PHPCompatibility](https://talira.ai/catalog/phpcompatibility-ptwv532y.md): PHP_CodeSniffer sniffs that check PHP code for cross-version compatibility

## Sources

[^1]: https://github.com/r-lib/lintr/blob/main/DESCRIPTION (checked 29 Nov 2026)
[^2]: https://github.com/r-lib/lintr/blob/main/LICENSE (checked 29 Nov 2026)
