Learn R Programming

globals (version 0.19.0)

Identify Global Objects in R Expressions

Description

Identifies global ("unknown" or "free") objects in R expressions by code inspection using various strategies (ordered, liberal, conservative, or deep-first search). The objective of this package is to make it as simple as possible to identify global objects for the purpose of exporting them in parallel, distributed compute environments.

Copy Link

Version

Install

install.packages('globals')

Monthly Downloads

292,976

Version

0.19.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

February 2nd, 2026

Functions in globals (0.19.0)

Globals

A representation of a set of globals
.length

Gets the length of an object without dispatching
globalsByName

Locates and retrieves a set of global variables by their names
packagesOf.Globals

Identify the packages of the globals
findGlobals

Get all global objects of an expression
cleanup.Globals

Drop certain types of globals
walkAST

Walk the Abstract Syntax Tree (AST) of an R Expression