Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3d778fe

Browse files
nbennaviator-bot
authored and
aviator-bot
committedDec 21, 2023
preserve integer64 class
1 parent f1c73bf commit 3d778fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎R/spec-result-roundtrip.R

+8-1
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,16 @@ test_select_with_null <- function(...) {
264264
test_select(..., .add_null = "below")
265265
}
266266

267+
as_list_with_preserve_class <- function(x) {
268+
lapply(x, `class<-`, attr(x, "class"))
269+
}
270+
267271
test_select <- function(con, ..., .dots = NULL, .add_null = "none",
268272
.ctx, .envir = parent.frame()) {
269-
values <- c(list(...), .dots)
273+
values <- c(
274+
as_list_with_preserve_class(list(...)),
275+
as_list_with_preserve_class(.dots)
276+
)
270277

271278
value_is_formula <- vapply(values, is.call, logical(1L))
272279
names(values)[value_is_formula] <- lapply(values[value_is_formula], "[[", 2L)

0 commit comments

Comments
 (0)
Please sign in to comment.