shared_env: Shared Environment.

.SharedEnvR Documentation

Shared Environment.

Description

A shared environment between modules.

Usage

.SharedEnv

sharedenv()

Details

The shared environment is bound to the injector being used.

Value

The shared environment.

Warning

Do not assign to .SharedEnv in the workspace, because this will always mask the object of the same name in package:modulr.

See Also

injector.

Examples

.SharedEnv$foo <- "foo"
"foobar" %provides% { function() print(.SharedEnv$foo) }
make()()
.SharedEnv$foo <- "bar"
make()()

aclemen1/modulr documentation built on Oct. 2, 2024, 7:18 a.m.