NULL
R/utilities.R
op-null-default.Rd
Convenience function to avoid testing for NULL.
x %||% y
If x is NULL, will return y; otherwise returns x.
x
y
The first object if it is not NULL otherwise the second object.
1 %||% 2 #> [1] 1 NULL %||% 2 #> [1] 2