Skip to content

Commit 6265e00

Browse files
committed
feat(3611): added to news and tests
1 parent c732703 commit 6265e00

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
3. Vignettes are now built using `litedown` instead of `knitr`, [#6394](https://github.com/Rdatatable/data.table/issues/6394). Thanks @jangorecki for the suggestion and @ben-schwen and @aitap for the implementation.
2626

27+
4. `fread` now prints a message by default when creating one or more integer64 columns, warning that this type sometimes give unexpected results like in case of as.matrix(). The message can be suppressed with the new argument `no.integer64.message=TRUE`. To avoid integer64 columns, we can use options(datatable.integer64='numeric'). Thanks to @stefanfritsch, @mattdowle for the suggestion. [#3611](https://github.com/Rdatatable/data.table/issues/3611)
28+
2729
### BUG FIXES
2830

2931
1. `fread()` with `skip=0` and `(header=TRUE|FALSE)` no longer skips the first row when it has fewer fields than subsequent rows, [#7463](https://github.com/Rdatatable/data.table/issues/7463). Thanks @emayerhofer for the report and @ben-schwen for the fix.

inst/tests/tests.Rraw

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21978,3 +21978,12 @@ local({
2197821978
test(2357.1, fread(f), DT)
2197921979
test(2357.2, fread(paste0("file://", f)), DT)
2198021980
})
21981+
#3611 fread integer64 message
21982+
test(2358.1,
21983+
suppressMessages(fread("a\n1\n2\n", colClasses = "integer64")),
21984+
data.table(a = as.integer64(c(1,2)))
21985+
)
21986+
test(2358.2,
21987+
suppressMessages(fread("a\n1\n2\n", colClasses = "integer64", no.integer64.message = TRUE)),
21988+
data.table(a = as.integer64(c(1,2)))
21989+
)

0 commit comments

Comments
 (0)