Learn R Programming

globals (version 0.17.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, or conservative). 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

256,036

Version

0.17.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

April 16th, 2025

Functions in globals (0.17.0)

findGlobals

Get all global objects of an expression
packagesOf.Globals

Identify the packages of the globals
cleanup.Globals

Drop certain types of globals
.length

Gets the length of an object without dispatching
globalsByName

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

A representation of a set of globals
walkAST

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