grapes-help-help-grapes: Null/empty-coalescing operator

Description Usage Arguments Value

Description

Improves the rlang::%||% operator by handling also cases of zero-length objects.

Usage

1
x %??% y

Arguments

x

Left side of the operator. To be tested.

y

Right side of the operator. Is returned if left side is null or empty.

Value

Either x or y.


Ilia-Kosenkov/RLibs documentation built on Jan. 26, 2020, 2:21 p.m.