Skip to content

Commit ef7cd3e

Browse files
committed
Copy vec_proxy to avoid in-place modification.
See r-lib/vctrs#1950
1 parent 8f27374 commit ef7cd3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

R/interlaced.R

+5-3
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,11 @@ format.interlacer_interlaced_pillar <- function(x, width, ...) {
398398

399399
#' @export
400400
vec_proxy.interlacer_interlaced <- function(x, ...) {
401-
data_frame(
402-
v = value_channel(x),
403-
m = na_channel(x),
401+
duplicate(
402+
data_frame(
403+
v = value_channel(x),
404+
m = na_channel(x),
405+
)
404406
)
405407
}
406408

0 commit comments

Comments
 (0)