flowR – static dataflow analyser for R

flowR is a static program analysis framework for R that examines how data, function calls and control flow through source code. It is designed to help developers understand program behaviour, identify dependencies and investigate potential defects without relying on the execution of the analysed program.

One of its central capabilities is dataflow analysis. flowR determines relationships between variables and expressions, making it possible to trace where values originate and how they are used. It can generate dataflow, control-flow and call graphs, providing different perspectives on the structure of a program.

The software includes a query system for examining source code. Dependency queries can identify packages used by a project, external data files, sourced scripts and generated outputs. Additional analysis can help establish which package versions are likely to satisfy the functions used by an application.

Program slicing is another important capability. It identifies statements relevant to a particular point in a program, allowing developers to concentrate on the code that contributes to a selected computation. This is particularly useful when investigating unfamiliar scripts or understanding complicated data transformations.

flowR also includes a collection of linting checks. These cover issues such as unused definitions, undefined symbols, problematic file paths, unclosed connections, dead code and questionable function calls. Security-oriented rules can identify potentially exposed credentials, network operations and patterns associated with secret exfiltration.

The framework provides a REPL and query interface for interactive examination of source code. Graphs and analysis results can also be explored through supported development tools and browser-based facilities.

flowR integrates with Visual Studio Code, Positron and RStudio. It is additionally available through container-based and programmatic interfaces, allowing developers to incorporate its analysis into automated workflows.

This is free and open source software.

Key Features

  • Static dataflow and control-flow analysis of R programs.
  • Generates dataflow graphs, control-flow graphs and call graphs.
  • Tracks relationships between variables, expressions and function calls.
  • Identifies package dependencies, sourced files and generated outputs.
  • Program slicing to isolate statements relevant to selected computations.
  • Linting checks for unused definitions, undefined symbols and dead code.
  • Detects problematic file operations and resource-handling patterns.
  • Security-oriented checks for exposed credentials and potential secret exfiltration.
  • Interactive queries, REPL and graphical exploration.
  • Integration with Visual Studio Code, Positron and RStudio.
  • Programmatic interfaces for incorporating analysis into other workflows.

Website: github.com/flowr-analysis/flowr
Support:
Developer: flowR
License: GNU General Public License v3.0

flowR is written in TypeScript. Learn TypeScript with our recommended free books and free tutorials.


Related Software

R Linters
lintrProvides static code analysis for R
jarlFast linter for R
flirParse and rewrite R code
flowRSophisticated, static dataflow analyzer
checkglobalsR package that performs static analysis of R source code dependencies
scilintrCollection of scientific linting tools

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted