lintr is a static code analysis tool for R that checks code for style adherence, syntax errors, and potential semantic issues. It identifies problems and reports them so developers can fix issues before runtime.
The package provides configurable linters that can be run on individual files, projects, or entire R packages. It integrates with CI/CD workflows and popular editors for automated checking. lintr complements the styler package, which automatically fixes formatting issues, while lintr focuses on detection and reporting of a broader range of code quality problems.