* using log directory ‘/Users/ripley/R/packages/tests-devel/tidytable.Rcheck’ * using R Under development (unstable) (2025-12-23 r89222) * using platform: aarch64-apple-darwin25.2.0 * R was compiled by Apple clang version 17.0.0 (clang-1700.6.3.2) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.2 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘tidytable/DESCRIPTION’ ... OK * this is package ‘tidytable’ version ‘0.11.2’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘tidytable’ can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(tidytable) Attaching package: 'tidytable' The following objects are masked from 'package:stats': dt, filter, lag The following objects are masked from 'package:base': %in%, %notin% > > test_check("tidytable") Saving _problems/test-add_count-6.R Saving _problems/test-add_count-12.R Saving _problems/test-add_count-20.R Saving _problems/test-add_count-33.R Saving _problems/test-cur-context-34.R Saving _problems/test-cur-context-45.R Saving _problems/test-mutate-12.R Saving _problems/test-mutate-90.R Saving _problems/test-mutate-102.R Saving _problems/test-mutate-130.R Saving _problems/test-mutate-268.R Saving _problems/test-mutate-276.R Saving _problems/test-transmute-16.R [ FAIL 13 | WARN 0 | SKIP 0 | PASS 1313 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-add_count.R:6:3'): adds count ────────────────────────────────── Error in ``[.data.table`(~.df, , `:=`(n = .N), by = "g", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% add_count(g) at test-add_count.R:6:3 2. ├─tidytable::add_count(., g) 3. ├─tidytable:::add_count.tidytable(., g) 4. │ ├─tidytable::mutate(.df, `:=`(!!name, n()), .by = c(!!!.by)) 5. │ └─tidytable:::mutate.tidytable(.df, `:=`(!!name, n()), .by = c(!!!.by)) 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─.df[, `:=`(n = .N), by = "g", keyby = FALSE] 8. └─data.table:::`[.data.table`(.df, , `:=`(n = .N), by = "g", keyby = FALSE) ── Error ('test-add_count.R:12:3'): adds sum ─────────────────────────────────── Error in ``[.data.table`(~.df, , `:=`(n = sum(val, na.rm = TRUE)), by = "g", keyby = FALSE)`: Internal error in assign: input dt has not been allocated enough column slots. l=2, tl=2, adding 1. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% add_count(g, wt = val) at test-add_count.R:12:3 2. ├─tidytable::add_count(., g, wt = val) 3. ├─tidytable:::add_count.tidytable(., g, wt = val) 4. │ ├─tidytable::mutate(...) 5. │ └─tidytable:::mutate.tidytable(...) 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─.df[, `:=`(n = sum(val, na.rm = TRUE)), by = "g", keyby = FALSE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-add_count.R:18:3'): works on a grouped_tt ────────────────────── Error in ``[.data.table`(~.df, , `:=`(n = .N), by = "g", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% group_by(g) %>% add_count() at test-add_count.R:18:3 2. ├─tidytable::add_count(.) 3. ├─tidytable:::add_count.grouped_tt(.) 4. │ ├─tidytable::add_count(...) 5. │ └─tidytable:::add_count.tidytable(...) 6. │ ├─tidytable::mutate(.df, `:=`(!!name, n()), .by = c(!!!.by)) 7. │ └─tidytable:::mutate.tidytable(.df, `:=`(!!name, n()), .by = c(!!!.by)) 8. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 9. ├─.df[, `:=`(n = .N), by = "g", keyby = FALSE] 10. └─data.table:::`[.data.table`(.df, , `:=`(n = .N), by = "g", keyby = FALSE) ── Error ('test-add_count.R:33:3'): adds sum and works on grouped_tt ─────────── Error in ``[.data.table`(~.df, , `:=`(n = sum(val, na.rm = TRUE)), by = "g", keyby = FALSE)`: Internal error in assign: input dt has not been allocated enough column slots. l=2, tl=2, adding 1. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% group_by(g) %>% add_tally(wt = val) at test-add_count.R:33:3 2. ├─tidytable::add_tally(., wt = val) 3. │ ├─tidytable::add_count(...) 4. │ └─tidytable:::add_count.grouped_tt(...) 5. │ ├─tidytable::add_count(...) 6. │ └─tidytable:::add_count.tidytable(...) 7. │ ├─tidytable::mutate(...) 8. │ └─tidytable:::mutate.tidytable(...) 9. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 10. ├─.df[, `:=`(n = sum(val, na.rm = TRUE)), by = "g", keyby = FALSE] 11. └─data.table:::`[.data.table`(...) ── Error ('test-cur-context.R:31:3'): cur_group_rows() works ─────────────────── Error in ``[.data.table`(~.df, , `:=`(rows1 = seq_len(.N), rows_check = 1:.N), by = "y", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% ... at test-cur-context.R:31:3 2. ├─tidytable::mutate(...) 3. ├─tidytable:::mutate.tidytable(...) 4. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-cur-context.R:42:3'): cur_group_id() works ───────────────────── Error in ``[.data.table`(~.df, , `:=`(id1 = .GRP, id_check = .GRP), by = "y", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% mutate(id1 = cur_group_id(), id_check = .GRP, .by = y) at test-cur-context.R:42:3 2. ├─tidytable::mutate(., id1 = cur_group_id(), id_check = .GRP, .by = y) 3. ├─tidytable:::mutate.tidytable(...) 4. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 5. ├─.df[, `:=`(id1 = .GRP, id_check = .GRP), by = "y", keyby = FALSE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-mutate.R:7:3'): can remove variables with NULL ───────────────── Error in ``[.data.table`(~.df, , `:=`(c("x", "x_plus_y"), { x = NULL x = rep(1, 3) x_plus_y = x + y list(x, x_plus_y) }), by = "x", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% ... at test-mutate.R:7:3 2. ├─tidytable::mutate(...) 3. ├─tidytable:::mutate.data.frame(...) 4. │ ├─tidytable::mutate(...) 5. │ └─tidytable:::mutate.tidytable(...) 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─...[] 8. └─data.table:::`[.data.table`(...) ── Error ('test-mutate.R:89:3'): can use .by ─────────────────────────────────── Error in ``[.data.table`(~.df, , `:=`(z = mean(x)), by = "y", keyby = FALSE)`: Internal error in assign: input dt has not been allocated enough column slots. l=2, tl=2, adding 1. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% mutate(z = mean(x), .by = y) at test-mutate.R:89:3 2. ├─tidytable::mutate(., z = mean(x), .by = y) 3. ├─tidytable:::mutate.tidytable(., z = mean(x), .by = y) 4. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 5. ├─.df[, `:=`(z = mean(x)), by = "y", keyby = FALSE] 6. └─data.table:::`[.data.table`(...) ── Error ('test-mutate.R:100:3'): works on grouped_tt ────────────────────────── Error in ``[.data.table`(~.df, , `:=`(z = mean(x)), by = "y", keyby = FALSE)`: Internal error in assign: input dt has not been allocated enough column slots. l=2, tl=2, adding 1. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% group_by(y) %>% mutate(z = mean(x)) at test-mutate.R:100:3 2. ├─tidytable::mutate(., z = mean(x)) 3. ├─tidytable:::mutate.grouped_tt(., z = mean(x)) 4. │ ├─tidytable::mutate(...) 5. │ └─tidytable:::mutate.tidytable(...) 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─.df[, `:=`(z = mean(x)), by = "y", keyby = FALSE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-mutate.R:129:3'): can mutate in order with .by ───────────────── Error in ``[.data.table`(~.df, , `:=`(c("x", "y"), { x = x + 1 y = x + 1 list(x, y) }), by = "z", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% mutate(x = x + 1, y = x + 1, .by = z) at test-mutate.R:129:3 2. ├─tidytable::mutate(., x = x + 1, y = x + 1, .by = z) 3. ├─tidytable:::mutate.tidytable(., x = x + 1, y = x + 1, .by = z) 4. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test-mutate.R:268:3'): .keep = 'none' only keeps grouping variables ── Error in ``[.data.table`(~.df, , `:=`(z = 1), by = "x", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─testthat::expect_named(...) at test-mutate.R:268:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─tidytable::mutate(df, z = 1, .by = x, .keep = "none") 5. ├─tidytable:::mutate.tidytable(df, z = 1, .by = x, .keep = "none") 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─.df[, `:=`(z = 1), by = "x", keyby = FALSE] 8. └─data.table:::`[.data.table`(.df, , `:=`(z = 1), by = "x", keyby = FALSE) ── Error ('test-mutate.R:273:3'): .keep= always retains grouping variables (#5582) ── Error in ``[.data.table`(~.df, , `:=`(a = x + 1), by = "z", keyby = FALSE)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-mutate.R:273:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─tidytable::mutate(df, a = x + 1, .keep = "none", .by = z) 5. ├─tidytable:::mutate.tidytable(df, a = x + 1, .keep = "none", .by = z) 6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 7. ├─.df[, `:=`(a = x + 1), by = "z", keyby = FALSE] 8. └─data.table:::`[.data.table`(...) ── Error ('test-transmute.R:15:3'): can use .by ──────────────────────────────── Error in ``[.data.table`(~.df, , `:=`(z = mean(x)), by = "y", keyby = FALSE)`: Internal error in assign: input dt has not been allocated enough column slots. l=2, tl=2, adding 1. Please report to the data.table issues tracker. Backtrace: ▆ 1. ├─df %>% transmute(z = mean(x), .by = y) at test-transmute.R:15:3 2. ├─tidytable::transmute(., z = mean(x), .by = y) 3. │ ├─tidytable::mutate(...) 4. │ └─tidytable:::mutate.tidytable(...) 5. │ └─rlang::eval_tidy(dt_expr, .df, dt_env) 6. ├─.df[, `:=`(z = mean(x)), by = "y", keyby = FALSE] 7. └─data.table:::`[.data.table`(...) [ FAIL 13 | WARN 0 | SKIP 0 | PASS 1313 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/tidytable.Rcheck/00check.log’ for details. 30.93 real 24.56 user 5.46 sys