assign-active: Create an active binding.

Description Usage Arguments Examples

Description

Infix form of makeActiveBinding which creates an active binding between a name and an expression: every time the name is accessed the expression is recomputed.

Usage

1
x %<a-% value

Arguments

x

unquoted expression naming variable to create

value

unquoted expression to evaluate every time name is accessed

Examples

1
2
3
4
5
6
7
x %<a-% runif(1)
x
x
x %<a-% runif(10)
x
x
rm(x)

pryr documentation built on Feb. 18, 2018, 9:02 a.m.