R

The Best R Static Analysis Tools (Linters/Formatters)

We rank 11 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.

4 R Tools

lintr

Static Code Analysis for R.

  • MaintainedMaintained
  • MaintainedR
  • Maintainedcli
  • Maintainedlinter
  • 100% upvoted

goodpractice

Analyses the source code for R packages and provides best-practice recommendations.

  • MaintainedMaintained
  • MaintainedR
  • Maintainedcli
  • Maintainedlinter
  • 75% upvoted

cyclocomp

Quantifies the cyclomatic complexity of R functions / expressions.

  • MaintainedMaintained
  • MaintainedR
  • Maintainedcli
  • Maintainedlinter
  • 100% upvoted

styler

Formatting of R source code files and pretty-printing of R code.

  • MaintainedMaintained
  • MaintainedR
  • Maintainedcli
  • Maintainedformatter
  • 100% upvoted

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

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 67% upvoted

Sonatype

Reports known vulnerabilities in common dependencies and recommends updated packages to minimize breaking changes

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedservice
  • Maintainedlinter
  • 72% upvoted

Sigrid

Sigrid helps you to improve your software by measuring your system's code quality, and then compares the results against a benchmark of thousands of industry systems to give you concrete advice on areas where you can improve.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • MaintainedcliMaintainedservice
  • Maintainedlinter
  • 92% upvoted

callGraph

Statically generates a call graph image and displays it on screen.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 73% upvoted

todocheck

Linter for integrating annotated TODOs with your issue trackers

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 44% upvoted

CodeFactor

Automated Code Analysis for repos on GitHub or BitBucket.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedservice
  • Maintainedlinter
  • 40% upvoted

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.

  • MaintainedMaintained
  • MaintainedMulti-Language
  • Maintainedcli
  • Maintainedlinter
  • 36% upvoted

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, goodpractice, cyclocomp, styler, todocheck, CodeFactor.

Our Sponsors

This website is completely open source. To fund our work, we fully rely on sponsors. Thanks to them, we can keep the site free for everybody. Please check out their offers below.

  • BugProve
  • Pixee
  • semgrep
  • Offensive 360
  • BetterScan