Re: [Rd] Should last default to .Machine$integer.max-1 for substring()

2021-06-20 Thread brodie gaslam via R-devel
> On Sunday, June 20, 2021, 9:29:28 PM EDT, brodie gaslam via R-devel > wrote: > >> On Sunday, June 20, 2021, 6:21:22 PM EDT, Michael Chirico >> wrote: >> >> The max width of a string is .Machine$integer.max-1: > > I think the max width is .Machine$integer.max.  What happened below is a > bug d

Re: [Rd] Should last default to .Machine$integer.max-1 for substring()

2021-06-20 Thread brodie gaslam via R-devel
> On Sunday, June 20, 2021, 6:21:22 PM EDT, Michael Chirico > wrote: > > Currently, substring defaults to last=100L, which strongly > suggests the intent is to default to "nchar(x)" without having to > compute/allocate that up front. > > Unfortunately, this default makes no sense for "very

[Rd] Should last default to .Machine$integer.max-1 for substring()

2021-06-20 Thread Michael Chirico
Currently, substring defaults to last=100L, which strongly suggests the intent is to default to "nchar(x)" without having to compute/allocate that up front. Unfortunately, this default makes no sense for "very large" strings which may exceed 100L in "width". The max width of a string is .