Skip to content

Commit 4f04422

Browse files
committed
Merge branch 'master' into test-warnings
2 parents 9bc3daa + ca30752 commit 4f04422

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

GOVERNANCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Please also make a note in the change log under [`# Governance history`](#govern
108108

109109
# Finances and Funding
110110

111-
data.table is a [NumFOCUS](https://numfocus.org/) project. Donations to the data.table can be made at [https://numfocus.org/project/data-table]([https://numfocus.org/donate-to-data-table](https://app.hubspot.com/payments/FFWKWTTvKFdzqH?referrer=PAYMENT_LINK))
111+
data.table is a [NumFOCUS](https://numfocus.org/) project. Donations to data.table can be made at [https://numfocus.org/project/data-table](https://app.hubspot.com/payments/FFWKWTTvKFdzqH?referrer=PAYMENT_LINK).
112112

113113
*NumFOCUS is a 501(c)(3) non-profit charity in the United States; as such, donations to NumFOCUS are tax-deductible as allowed by law. As with any donation, you should consult with your personal tax adviser or the IRS about your particular tax situation.*
114114

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
102102
15. `split.data.table()` output list elements retain the S3 class of the generating data.table, e.g. in `l=split(x, ...)` if `x` has class `my_class`, so will `l[[1]]` and so on, [#7105](https://github.com/Rdatatable/data.table/issues/7105). Thanks @m-muecke for the bug report and @MichaelChirico for the fix.
103103
104+
16. `between()` is now more robust with `integer64` arguments. Combining small integer `x` with certain large `integer64` bounds no longer misinterprets the bounds as `double`; if a `double` bound cannot be losslessly converted into `integer64` for comparison with `integer64` `x`, an error is signalled instead of returning a wrong answer with a warning; [#7164](https://github.com/Rdatatable/data.table/issues/7164). Thanks @aitap for the bug report and the fix.
105+
104106
### NOTES
105107
106108
1. The following in-progress deprecations have proceeded:

inst/tests/tests.Rraw

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21561,10 +21561,18 @@ test(2332.81, {M1[]=frev(M1); M1}, {M2[]=rev(M2); M2})
2156121561
test(2333, as.expression(data.table(a = 1))[["a"]], 1)
2156221562

2156321563
# regression test for hexdigits subscript overrun (uint8_t wraps over 255, unsigned overflow is well defined in c)
21564-
f = tempfile()
21565-
writeLines(c('a', rep('0x1.ffffp0', 10000L), '0x1.ff\x9fp0', rep('0x1.ffffp0', 20000L)), f)
21566-
test(2334, names(fread(f)), "a")
21567-
unlink(f)
21564+
local({
21565+
f = tempfile()
21566+
on.exit(unlink(f))
21567+
# the line is likely invalid in current encoding, so disable any translation, #7209
21568+
# test.data.table() sets options(encoding="UTF-8"), so go the long way around.
21569+
ff = file(f, encoding = "")
21570+
tryCatch(
21571+
writeLines(c('a', rep('0x1.ffffp0', 10000L), `Encoding<-`('0x1.ff\x9fp0', 'bytes'), rep('0x1.ffffp0', 20000L)), ff),
21572+
finally = close(ff)
21573+
)
21574+
test(2334, names(fread(f)), "a")
21575+
})
2156821576

2156921577
# Tests for new isoyear() helper (complement to isoweek) #7154
2157021578
test(2335.1, isoyear(as.IDate("2019-12-30")), 2020L) # End of year edge case

0 commit comments

Comments
 (0)