---
name: lintr
description: "Use when adopting lintr to assess this standard: Run repeatable lint checks on R packages"
---

# Apply lintr

Declare the active linters and exclusions alongside package code. Preserve file and line evidence for style, usage and object-name findings.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by lintr.
2. Use lintr in this repository to meet this standard: Run repeatable lint checks on R packages. Declare the active linters and exclusions alongside package code. Preserve file and line evidence for style, usage and object-name findings. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://lintr.r-lib.org/) for configuration and prerequisites.
