- Use `lintr::lint_package()` to run static analysis — configure rules in `.lintr` at the project root to suppress false positives.
- Use `styler::style_pkg()` to auto-format all R files to tidyverse style — run it before every commit.
- Add a pre-commit hook or CI step that fails on `lintr` warnings to enforce code quality gates.
- Configure `.lintr` with `linters: linters_with_defaults(line_length_linter(100))` to customize rules without disabling the full default set.
- Use `styler::style_file()` on individual files or `styler::style_dir("R/")` on a directory — avoid manually reformatting code.
- Enable `object_name_linter` and `assignment_linter` in `.lintr` to enforce consistent naming and `<-` assignment style.
- Run `lintr::lint("R/")` in CI with `options(lintr.error_on_lint = TRUE)` to treat warnings as errors.