grapes-or-or-grapes: The %||% operator

%||%R Documentation

The ⁠%||%⁠ operator

Description

This small helper replicates the ⁠rlang::%||%⁠ pattern, returning the left-hand side if not NULL, otherwise the right-hand side.

Usage

x %||% y

bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.