Skip to content

Commit f3ecd6f

Browse files
committed
testing character, rather than call b/c inconsistencies
1 parent 45ac27b commit f3ecd6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/slide.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ epi_slide_opt <- function(x, col_names, f, ..., before = NULL, after = NULL, ref
509509
# positions of user-provided `col_names` into string column names. We avoid
510510
# using `names(pos)` directly for robustness and in case we later want to
511511
# allow users to rename fields via tidyselection.
512-
if (class(quo_get_expr(enquo(col_names))) == "call") {
513-
pos <- eval_select(enquo(col_names), data = x, allow_rename = FALSE)
514-
} else {
512+
if (class(quo_get_expr(enquo(col_names))) == "character") {
515513
pos <- eval_select(all_of(col_names), data = x, allow_rename = FALSE)
514+
} else {
515+
pos <- eval_select(enquo(col_names), data = x, allow_rename = FALSE)
516516
}
517517
col_names_chr <- names(x)[pos]
518518
# Always rename results to "slide_value_<original column name>".

0 commit comments

Comments
 (0)