env_l: Environment lens

Description Usage Format Examples

Description

A lens into the environment of an object. This is the lens version of environment and environment<-

Usage

1

Format

An object of class lens of length 2.

Examples

1
2
3
4
5
6
7
8
9
x <- 10
f <- (function(){x <- 2; function() x + 1})()
f

f()
view(f, env_l)$x

g <- over(f, env_l, parent.env)
g()

lenses documentation built on May 2, 2019, 8:51 a.m.