Re: [Rd] strtoi output of empty string inconsistent across platforms

2019-01-12 Thread Martin Maechler
> Michael Chirico > on Sat, 12 Jan 2019 17:34:03 +0800 writes: > Thanks Martin. For what it's worth, this extremely > representative, highly scientific Twitter poll suggests > the Mac/Linux split is pretty stark (NA on Mac, 0 on > Linux) > https://twitter.com/mic

Re: [Rd] strtoi output of empty string inconsistent across platforms

2019-01-12 Thread Michael Chirico
Thanks Martin. For what it's worth, this extremely representative, highly scientific Twitter poll suggests the Mac/Linux split is pretty stark (NA on Mac, 0 on Linux) https://twitter.com/michael_chirico/status/1083649190117306369?s=17 On Sat, Jan 12, 2019, 2:00 AM Martin Maechler > Martin M

Re: [Rd] strtoi output of empty string inconsistent across platforms

2019-01-11 Thread Martin Maechler
> Martin Maechler > on Fri, 11 Jan 2019 09:44:14 +0100 writes: > Michael Chirico > on Fri, 11 Jan 2019 14:36:17 +0800 writes: >> Identified as root cause of a bug in data.table: >> https://github.com/Rdatatable/data.table/issues/3267 >> On my machine, strtoi

Re: [Rd] strtoi output of empty string inconsistent across platforms

2019-01-11 Thread Martin Maechler
> Michael Chirico > on Fri, 11 Jan 2019 14:36:17 +0800 writes: > Identified as root cause of a bug in data.table: > https://github.com/Rdatatable/data.table/issues/3267 > On my machine, strtoi("", base = 2L) produces NA_integer_ > (which seems consistent with ?strtoi:

[Rd] strtoi output of empty string inconsistent across platforms

2019-01-10 Thread Michael Chirico
Identified as root cause of a bug in data.table: https://github.com/Rdatatable/data.table/issues/3267 On my machine, strtoi("", base = 2L) produces NA_integer_ (which seems consistent with ?strtoi: "Values which cannot be interpreted as integers or would overflow are returned as NA_integer_"). B