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 Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted