This function always returns the value FALSE
.
Examples
# `false()` is useful for "turning-off" a conditional format
odd_even <- highlight_mult(
1:6,
.x %% 2 == 0 ~ wrap("<", ">"),
.x %% 2 == 1 ~ wrap("[", "]")
)
# Even values are wrapped in "<>", odd in "[]"
odd_even
#> <highlight<integer>[6]>
#> [1] [1] <2> [3] <4> [5] <6>
# Turn off the highlighting of odd values
tests(odd_even)[[2]] <- false
odd_even
#> <highlight<integer>[6]>
#> [1] 1 <2> 3 <4> 5 <6>