From e093c75a327004efd4fe19d1f749bf4bc916d469 Mon Sep 17 00:00:00 2001 From: Benjamin Schwendinger Date: Mon, 26 Jan 2026 08:41:58 +0100 Subject: [PATCH 1/3] dont use lambdas in tests --- inst/tests/tests.Rraw | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 27ad21eaf..30ee97194 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -21420,12 +21420,13 @@ txt = paste0("foo\n", strrep("a", 4096 * 100), "\x1A") test(2359.1, nchar(fread(txt)$foo), 409600L) # rowwiseDT() valid and invalid handling of complex objects #7219 +# NB \(x) only exists pre-parser and is changed to function(x) x during parsing test(2360.1, rowwiseDT(x =, y =, 1, 2, 3, 4), data.table(x = c(1, 3), y = c(2, 4))) test(2360.2, rowwiseDT(x =, func =, - 1, list(\(x) x + 1), + 1, list(function(x) x + 1), 2, list(function(z) z * 2)), - data.table(x = c(1, 2), func = list(\(x) x + 1, function(z) z * 2))) -test(2360.3, rowwiseDT(x =, func =, 1, \(x) x + 1), + data.table(x = c(1, 2), func = list(function(x) x + 1, function(z) z * 2))) +test(2360.3, rowwiseDT(x =, func =, 1, function(x) x + 1), error = "Column 'func' is type 'function'. Non-atomic, non-list objects must be wrapped in list\\(\\)") test(2360.4, rowwiseDT(x =, expr =, 1, quote(a + b)), error = "Column 'expr' is type 'call'. Non-atomic, non-list objects must be wrapped in list\\(\\)") From 3137cb8c542add17a93e6c4ec1f3bade418eae5f Mon Sep 17 00:00:00 2001 From: Benjamin Schwendinger Date: Mon, 26 Jan 2026 08:50:15 +0100 Subject: [PATCH 2/3] supply origin for old (R 3.5.0) as.Date --- inst/tests/nafill.Rraw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/tests/nafill.Rraw b/inst/tests/nafill.Rraw index 6428be9af..4ab0d30b9 100644 --- a/inst/tests/nafill.Rraw +++ b/inst/tests/nafill.Rraw @@ -416,7 +416,7 @@ test(15.22, nafill(x, fill=y26), replace(x, c(1L, 3L, 5L), y26)) test(15.23, nafill(x, fill=as.POSIXct(y26, tz='Asia/Singapore')), replace(x, c(1L, 3L, 5L), y26)) test(15.24, nafill(as.Date(NA), fill=as.IDate("2025-01-01")), as.Date("2025-01-01")) -test(15.25, nafill(as.Date(NA_integer_), fill=as.IDate("2025-01-01")), as.Date("2025-01-01")) +test(15.25, nafill(as.Date(NA_integer_, origin='1970-01-01'), fill=as.IDate("2025-01-01")), as.Date("2025-01-01")) test(15.26, nafill(as.IDate(NA), fill=as.Date("2025-01-01")), as.IDate("2025-01-01")) ## setnafill From 8cf706ea4d5ad711540b011f6f39d10457b2b482 Mon Sep 17 00:00:00 2001 From: Benjamin Schwendinger Date: Mon, 26 Jan 2026 12:04:31 +0100 Subject: [PATCH 3/3] remove comment --- inst/tests/tests.Rraw | 1 - 1 file changed, 1 deletion(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 30ee97194..1c7ab6837 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -21420,7 +21420,6 @@ txt = paste0("foo\n", strrep("a", 4096 * 100), "\x1A") test(2359.1, nchar(fread(txt)$foo), 409600L) # rowwiseDT() valid and invalid handling of complex objects #7219 -# NB \(x) only exists pre-parser and is changed to function(x) x during parsing test(2360.1, rowwiseDT(x =, y =, 1, 2, 3, 4), data.table(x = c(1, 3), y = c(2, 4))) test(2360.2, rowwiseDT(x =, func =, 1, list(function(x) x + 1),