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 |
| flowR | Sophisticated, static dataflow analyzer |
| checkglobals | R package that performs static analysis of R source code dependencies |
| scilintr | Collection of scientific linting tools |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.