shared_env: Shared Environment.

Description Usage Details Value Warning See Also Examples

Description

A shared environment between modules.

Usage

1
2
3

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

1
2
3
4
5
.SharedEnv$foo <- "foo"
"foobar" %provides% { function() print(.SharedEnv$foo) }
make()()
.SharedEnv$foo <- "bar"
make()()

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.