Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

globalsByName

Locates and retrieves a set of global variables by their names


Description

Locates and retrieves a set of global variables by their names

Usage

globalsByName(names, envir = parent.frame(), mustExist = TRUE, ...)

Arguments

names

A character vector of global variable names.

envir

The environment from where to search for globals.

mustExist

If TRUE, an error is thrown if the object of the identified global cannot be located. Otherwise, the global is not returned.

...

Not used.

Value

A Globals object.


globals

Identify Global Objects in R Expressions

v0.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph], Davis Vaughan [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.