done {rlang} | R Documentation |
Box a final value for early termination
Description
A value boxed with done()
signals to its caller that it
should stop iterating. Use it to shortcircuit a loop.
Usage
done(x)
is_done_box(x, empty = NULL)
Arguments
x |
For |
empty |
Whether the box is empty. If |
Value
A boxed value.
Examples
done(3)
x <- done(3)
is_done_box(x)
[Package rlang version 1.1.4 Index]