You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Out of range warning for as.integer64.character and hex support (#228)
* emit out of range exceptions for as.integer64.character
* save expected warning as string, use strrep() to create giant number
* cleaning up tests, check '0x0'
* parameterized test with more warning cases
* NEWS citations
* missing ')'
* tighten inclusions
* parameterize tests for base-10 too, add a few more
* avoid strlen()
* clarify comment
---------
Co-authored-by: Michael Chirico <chiricom@google.com>
-`as.Date`, `as.POSIXct`, `as.POSXlt`, `as.complex`, and `as.raw` get an `integer64` method.
55
55
-`as.integer64` gets `Date`, `POSIXct`, `POSXlt`, `complex`, `raw`, and `difftime` methods.
56
+
1.`as.integer64.character` now supports hexadecimal (base 16) input when prefixed with "0x" or "-0x", e.g. `as.integer64("0x7FFFFFFFFFFFFFFF")`. Thanks @hcirellu for a PR which completes work begun by @marcpaterno.
56
57
57
58
## BUG FIXES
58
59
@@ -62,6 +63,7 @@
62
63
1.`sortfin(integer64(), 1:10)` no longer segfaults (#164).
63
64
1.`orderfin(as.integer64(10:1), 1:3, 8:11)` enforces that `table` be sorted by `order` instead of segfaulting (#166).
64
65
1.`ordertab()` no longer segfaults when `nunique` is smaller than the actual number of unique values (#168).
66
+
1.`as.integer64.character` now returns `NA` for out of range values, with warning, e.g. `as.integer64("22222222222222222222")`. Thanks @hcirellu.
0 commit comments