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 | |
|---|---|
| lintr | Provides static code analysis for R |
| jarl | Fast linter for R |
| flir | Parse and rewrite R code |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

