store_environment: Removes references to environments.

Description Usage Arguments Details Value

Description

Some objects (e.g. formula, lm) store references to environments in which they were created. This function replaces each such reference with a reference to emptyenv().

Usage

1
2
3
4
5
6
7
store_environment(store, env, expr)

store_plot(store, plot, env, expr)

extract_parents(env, expr)

strip_object(obj)

Arguments

obj

Object to be processed.

Details

As much as possible, this function tries not to make any copies of the original data. This is because the address of the object might be used to determine whether object's identifier needs to be computed which might be a costly operation.

Value

obj with environment references replaced by emptyenv()


lbartnik/experiment documentation built on May 20, 2019, 8:27 p.m.