checkglobals – R package that performs static analysis of R source code dependencies

checkglobals is an R package that performs static analysis of R source code dependencies.

It helps developers identify unrecognized global variables and imported functions in R scripts, folders, package source trees, code strings, and bundled source packages, without needing to install or execute the target code. It’s designed as a fast, lightweight alternative to codetools::findGlobals() for checking missing imports and variable definitions during package development or code review.

This is free and open source software.

Key Features

  • Inspects R scripts, folders, R code strings, R Markdown files, and R package source trees.
  • Reports unrecognized global variables with source file and line references.
  • Groups detected imported functions by package to help assess dependency usage.
  • Uses R’s internal C API for efficient static code inspection.
  • Can generate SARIF output for integration with tools such as GitHub Code Scanning and Jenkins warnings-ng.

Website: github.com/JorisChau/checkglobals/
Support:
Developer: Joris Chau
License: MIT License

checkglobals is written in R and C. Learn R with our recommended free books and free tutorials. Learn C 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