Jarl is a fast static code analyser for R that detects programming mistakes, questionable constructs and code quality problems. It is designed to examine source files efficiently while providing clear diagnostics and automatic corrections for supported rules.
The software includes more than 85 linting rules covering correctness, performance and coding conventions. Its checks can identify inefficient function calls, unsafe comparisons, suspicious expressions and patterns that are unnecessarily complicated. For example, Jarl can recommend using anyNA() instead of any(is.na()) and warn that all.equal() does not always return a logical value suitable for a conditional expression.
An important feature is automatic fixing. Jarl distinguishes between violations that can be corrected automatically and those requiring developer intervention. Some transformations are considered unsafe because they may change program behaviour in certain circumstances. These require explicit approval rather than being applied automatically.
Jarl uses a command-line interface for examining individual files or complete projects. It provides concise and detailed diagnostic formats, together with JSON output suitable for integration with development tools. Findings identify the relevant source location, rule and suggested correction.
Projects can define their linting preferences in a jarl.toml configuration file. This supports selecting and ignoring rules, controlling automatic fixes and excluding files. Per-file configuration makes it possible to apply different requirements to particular parts of a codebase.
Jarl integrates with Visual Studio Code, Positron and Zed, and can be incorporated into continuous integration and pre-commit workflows. Its analysis engine is built on Air, a fast R formatter, although Jarl concentrates on detecting problems rather than simply formatting code.
This is free and open source software.
Key Features
- Fast static analysis of R source code.
- More than 85 linting rules covering correctness, performance and coding conventions.
- Automatic fixes for supported rule violations.
- Separate handling of potentially unsafe automatic transformations.
- Configurable rule selection and exclusions through TOML files.
- Supports different linting settings for individual files.
- Concise, detailed and JSON diagnostic output.
- Integration with Visual Studio Code, Positron and Zed.
- Suitable for continuous integration and pre-commit checking.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/etiennebacher/jarl
Support:
Developer: Etienne Bacher
License: MIT License
Learn Rust with our recommended free books and free tutorials.
Related Software
| R Linters | |
|---|---|
| lintr | Provides static code analysis for R |
| jarl | Fast linter for R |
| flir | Parse and rewrite R code |
| flowR | Sophisticated, static dataflow analyzer |
| checkglobals | R package that performs static analysis of R source code dependencies |
| scilintr | Collection of scientific linting tools |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.