Learn R Programming

modules (version 0.9.8)

attach_module: Attach a module environment locally or globally

Description

Attach a module environment locally or globally

Usage

attach_module(all, operators, name, mod_env, parent)

Arguments

all

logical specifying whether to attach the whole module

operators

logical specifying whether to attach operators

name

the module name

mod_env

the module environment to attach

parent

the module parent environment

Details

If neither all nor operators are TRUE, this function does nothing. Otherwise, it will either attach the whole module environment or the operators it exports. Attaching is done by inserting the module at the first position into the parent environment chain.