Skip to content

Commit 9ccfe91

Browse files
committed
keep .real col from being accessible from user f computation
1 parent fed6f11 commit 9ccfe91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/slide.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ epi_slide = function(x, f, ..., before, after, ref_time_values,
357357
f_rtv_wrapper = function(x, g, ...) {
358358
ref_time_value = min(x$time_value) + before
359359
x <- x[x$.real,]
360+
x$.real <- NULL
360361
f(x, g, ref_time_value, ...)
361362
}
362363
x = x %>%
@@ -384,6 +385,7 @@ epi_slide = function(x, f, ..., before, after, ref_time_values,
384385
f = function(.x, .group_key, quo, ...) {
385386
.ref_time_value = min(.x$time_value) + before
386387
.x <- .x[.x$.real,]
388+
.x$.real <- NULL
387389
quo = quo_set_env(quo, env())
388390
rlang::eval_tidy(quo, .x)
389391
}

0 commit comments

Comments
 (0)