From 8f2737416383135615dacdce2718957f1c7fca83 Mon Sep 17 00:00:00 2001 From: Kyle Husmann Date: Thu, 15 Aug 2024 12:30:29 -0700 Subject: [PATCH] comparisons should be made on the value channel only The interlacer rule is "operations are applied to the value channel" and missing values are automatically masked out. the original behavior did not follow this in order to allow for comparsion of missing reasons. Instead, for missing reason comparsions we will need to define new equality operators that compare both values and missing reason channels. See discussion here for more info: https://github.com/r-lib/vctrs/pull/1928 --- R/interlaced.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/interlaced.R b/R/interlaced.R index 9fb738e..739fbc8 100644 --- a/R/interlaced.R +++ b/R/interlaced.R @@ -411,7 +411,7 @@ vec_restore.interlacer_interlaced <- function(x, to, ...) { #' @export vec_proxy_equal.interlacer_interlaced <- function(x, ...) { - if_else(is.empty(x), list(NULL), vec_chop(x)) + value_channel(x) } #' @export