The Best R Static Analysis Tools (Linters/Formatters)
We rank 15 R linters, code analyzers, formatters, and more. Find and compare tools like Mega-Linter, Sonatype, Sigrid, and more. Please rate and review tools that you've used. This helps others find the best tools for their projects.
8 R Tools
flowR
A program slicer and dataflow analyzer for the R programming language. Its slicer allows you to reduce a complicated program just to the parts related for a specific task (e.g., the generation of a single or collection of plots, a significance test, ...). The dataflow analysis provides you with a detailed view on the semantics of the R code which can greatly improve other analyses. To use flowR, check out the Visual Studio Code extension, the RStudio Addin, the Docker image, or the R package.
R Language Server
Provides code completion, refactoring, folding, diagnostics (with lintr), and more for R.
7 Multi-Language Tools
Mega-Linter
Mega-Linter can handle any type of project thanks to its 70+ embedded Linters, its advanced reporting, runnable on any CI system or locally, with assisted installation and configuration, able to apply formatting and fixes
StaticReviewer
Static Reviewer executes code checks according to the most relevant Secure Coding Standards, OWASP, CWE, CVE, CVSS, MISRA, CERT, for 40+ programming languages, using 1000+ built-in validation rules for Security, Deadcode & Best Practices Available a module for Software Composition Analysis (SCA) to find vulnerabilities in open source and third party libraries.
Help make this list better
Suggest Tools
Frequently Asked Questions
What are R tools?
There are many programming languages to choose from, but R is a unique option. It's specifically designed for data analysis, so it's perfect for scientists and statisticians. Additionally, the R community is very active and supportive, so you can always find help when you need it.
What are the best R static analysis tools and linters?
The most popular R tools ranked by user votes are: Mega-Linter, Sonatype, Sigrid, callGraph, lintr.
Which R services are free for open source projects?
Commercial services with a free plan for open source include Mega-Linter, Sonatype, callGraph, lintr, flowR, goodpractice, cyclocomp, styler, CodeDepends, R Language Server, rco, todocheck, CodeFactor.