# r-lib/lintr

Static Code Analysis for R

Repository: https://github.com/r-lib/lintr
Canonical: https://ross.abutalabs.com/products/lintr
Homepage: https://lintr.r-lib.org
Language: R
License: NOASSERTION
License Family: other
Topics: linter, r
Last push: 2026-08-26T16:14:17+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 61, longevity 100
- inputs: {"age_days": 4357, "days_push": 7, "days_rel": 48, "gap_med": 258.5, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1294, forks 202 (observed 2026-08-28T04:04:16.262184+00:00)

## What it is
lintr is an R package providing static code analysis for R, checking style adherence, syntax errors, and possible semantic issues. It is highly configurable and integrates with editors and CI pipelines.

## Use cases
- lint R code for style violations
- enforce a style guide across an R project
- catch syntax errors and suspicious code in R scripts
- add automated code checks to CI for R packages
- customize linter rules for a team's coding standards

## When to choose
- you write R code and want automated style and correctness checks
- you maintain an R package and want linting in CI
- you need configurable, extensible lint rules for R

## When to avoid
- you need linting for languages other than R
- you want an auto-formatter rather than a linter (consider styler instead)

## Facets
- artifact type: library
- maturity: stable
- function: linter, static-site-generator
- domain: developer-tools, programming-languages, testing
- platform: cli, cross-platform
- tags: static-analysis, code-style, r-package, code-quality, ci-integration, r

## Member repositories
- r-lib/lintr (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:16.262184+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:54:06.333316+00:00, confidence not recorded.
  - readme: https://github.com/r-lib/lintr (fetched 2026-08-28T04:04:16.262184+00:00, sha ecbd55bfba16)
  - homepage: https://lintr.r-lib.org (fetched 2026-08-29T12:10:54.477953+00:00, sha 77bedd04475b)
  - site_page: https://remotes.r-lib.org/reference/install_github.html (fetched 2026-08-29T12:10:54.491656+00:00, sha 81054acc499e)
  - site_page: https://lintr.r-lib.org/news/index.html (fetched 2026-08-29T12:10:54.487293+00:00, sha b41b3e3f02ed)
  - site_page: https://lintr.r-lib.org/authors.html (fetched 2026-08-29T12:10:54.493545+00:00, sha 00259aa5e7f3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
