Skip to content

Commit b0e7f82

Browse files
add condition to when to use select
1 parent d5c933b commit b0e7f82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ci/atime/tests.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ test.list <- atime::atime_test_list(
293293
set.seed(1)
294294
DT = data.table(a = rnorm(N), b = rnorm(N), c = rnorm(N), d = rnorm(N), e = rnorm(N))
295295
temp_file = tempfile()
296+
has_select = "select" %chin% names(formals(data.table::fwrite))
296297
},
297-
expr = data.table::fwrite(DT, temp_file, select = c("a", "b", "c")),
298+
expr = if (has_select)
299+
data.table::fwrite(DT, temp_file, select=c("a","b","c")),
298300
Slow = "66cb6d2393cef30083b444346a7600a079207806", # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/66cb6d2393cef30083b444346a7600a079207806)
299301
Fast = "1887699fe965b5aa1fb8cb16b5507b7a5cbf5c85"), # Commit in the PR (https://github.com/Rdatatable/data.table/pull/4177/commits) that adds select parameter
300302

0 commit comments

Comments
 (0)