%<d-% {pryr} | R Documentation |
Infix form of delayedAssign
which creates an delayed
or lazy binding, which only evaluates the expression the first time it is
used.
x %<d-% value
x |
unquoted expression naming variable to create |
value |
unquoted expression to evaluate the first time |
x %<d-% (a + b)
a <- 10
b <- 100
x