From ce5b4953c3c76b507acc7ea03de3c74c8dac1806 Mon Sep 17 00:00:00 2001 From: manmita Date: Mon, 2 Mar 2026 00:15:15 +0530 Subject: [PATCH 1/4] feat(7652): added stringsAsFactors to test so that char is not converted to factors in R 3.5 --- inst/tests/tests.Rraw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 508bf6aa0..f144532cf 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -21517,6 +21517,6 @@ dt_melt = data.table(a = 1:2, b = 3:4) test(2365.1, melt(df_melt, id.vars=1:2), melt(dt_melt, id.vars=1:2)) # test for data.frame reshape for dcast -df_dcast = data.frame(a = c("x", "y"), b = 1:2, v = 3:4) +df_dcast = data.frame(a = c("x", "y"), b = 1:2, v = 3:4, stringsAsFactors = FALSE) dt_dcast = data.table(a = c("x", "y"), b = 1:2, v = 3:4) test(2365.2, dcast(df_dcast, a ~ b, value.var = "v"), dcast(dt_dcast, a ~ b, value.var = "v")) From 1ce84bdc21dc507ebb44171e4574b3f88cadd6d3 Mon Sep 17 00:00:00 2001 From: manmita Date: Mon, 2 Mar 2026 00:44:14 +0530 Subject: [PATCH 2/4] feat(7652): add note for the fix --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 7cf63f0b7..a4c76005f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -52,6 +52,8 @@ 5. `melt()` and `dcast()` no longer provide nudges when receiving incompatible inputs (e.g. data.frames). As of now, we only define methods for `data.table` inputs. +6. `dcast()` for `data.frame` for character column return factors as type unless we specify `stringsAsFactors = FALSE`. + ## data.table [v1.18.2.1](https://github.com/Rdatatable/data.table/milestone/44?closed=1) (22 January 2026) ### BUG FIXES From c03971b7e0a70b095d52c97392cd9a91e3320b62 Mon Sep 17 00:00:00 2001 From: manmita Date: Mon, 2 Mar 2026 00:46:47 +0530 Subject: [PATCH 3/4] feat(7652): add note for the fix --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index a4c76005f..b1faff1a5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -52,7 +52,7 @@ 5. `melt()` and `dcast()` no longer provide nudges when receiving incompatible inputs (e.g. data.frames). As of now, we only define methods for `data.table` inputs. -6. `dcast()` for `data.frame` for character column return factors as type unless we specify `stringsAsFactors = FALSE`. +6. `dcast()` for `data.frame` for character column return factors as type unless we specify `stringsAsFactors = FALSE`. Thanks @aitap for reporting. ## data.table [v1.18.2.1](https://github.com/Rdatatable/data.table/milestone/44?closed=1) (22 January 2026) From e0ac16704831c2c71f2837fe3da624655cac0979 Mon Sep 17 00:00:00 2001 From: Ivan K Date: Tue, 3 Mar 2026 14:33:15 +0300 Subject: [PATCH 4/4] no need for the NEWS entry --- NEWS.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index b1faff1a5..7cf63f0b7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -52,8 +52,6 @@ 5. `melt()` and `dcast()` no longer provide nudges when receiving incompatible inputs (e.g. data.frames). As of now, we only define methods for `data.table` inputs. -6. `dcast()` for `data.frame` for character column return factors as type unless we specify `stringsAsFactors = FALSE`. Thanks @aitap for reporting. - ## data.table [v1.18.2.1](https://github.com/Rdatatable/data.table/milestone/44?closed=1) (22 January 2026) ### BUG FIXES