Skip to content

Commit f93ef93

Browse files
rename helper text and fn class in as_slide_computation
Co-authored-by: brookslogan <lcbrooks@cs.cmu.edu>
1 parent 65a49da commit f93ef93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/utils.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ as_slide_computation <- function(x,
252252
rlang:::abort_coercion(
253253
x,
254254
x_type = "a two-sided formula",
255-
to_type = "a function",
255+
to_type = "a slide computation",
256256
arg = arg,
257257
call = call
258258
)
@@ -269,15 +269,15 @@ as_slide_computation <- function(x,
269269
. = quote(..1), .group_key = quote(..2), .ref_time_value = quote(..3)
270270
)
271271
fn <- new_function(args, f_rhs(x), env)
272-
fn <- structure(fn, class = c("rlang_lambda_function", "function"))
272+
fn <- structure(fn, class = c("epiprocess_slide_computation", "function"))
273273
return(fn)
274274
}
275275

276276
if (is_string(x)) {
277277
return(get(x, envir = env, mode = "function"))
278278
}
279279

280-
rlang:::abort_coercion(x, "a function", arg = arg, call = call)
280+
rlang:::abort_coercion(x, "a slide computation", arg = arg, call = call)
281281
}
282282

283283
##########

0 commit comments

Comments
 (0)