Learn R Programming

aoos (version 0.5.0)

envCopy: Helpers for environments

Description

Functions to help working with environments.

Usage

envCopy(from, to)

envMerge(x, with)

Arguments

from
environment
to
environment
x
environment
with
environment

Details

envCopy tries to copy all objects in a given environment into the environment 'to'. Returns the names of copied objects.

envMerge will merge x and with. Merge will copy all objects from x to with. Prior to that, the environment of functions are changed to be with iff functions in x have environment x; else the environment of functions are preserved.

See Also

retList where these are relevant.