Re: [Rd] ALTREP string methods for substr and nchar

2019-12-19 Thread Gabriel Becker
Hi Jim, Thanks for posting this. Honestly the methods list I initially proposed years ago and the one Luke eventually put in which had some of what I had said and a bunch of new stuff, was pretty heavily focused on numeric values (exclusively so, in my case, I think). I agree that there is a lot

[Rd] ALTREP string methods for substr and nchar

2019-12-19 Thread Jim Hester
A useful extension of ALTREP is having two new string methods which return the number of characters of a given string element and to return a substring of an element. Having these methods would allow retrieving these values without needing to create a CHARSXP for the full element data, which could

Re: [Rd] head/tail breaking change

2019-12-19 Thread Martin Maechler
> Jan Gorecki > on Thu, 19 Dec 2019 11:49:11 +0530 writes: > Thank you Gabriel, > I agree that new behaviour makes much more sense. Just wanted to confirm > before resolving compatibility of my unit tests. > Best, > Jan Indeed, Gabe's explanation is right-on-spot: