Re: [Rd] R-devel: as.character() for hexmode no longer pads with zeros

2021-09-23 Thread Henrik Bengtsson
Thanks for confirming and giving details on the rationale (... and I'll updated R.utils to use format() instead). Regarding as.character(x)[j] === as.character(x[j]): I agree with this - is that property of as.character()/subsetting explicitly stated/documented somewhere? I wonder if this is a pr

Re: [Rd] R-devel: as.character() for hexmode no longer pads with zeros

2021-09-23 Thread Martin Maechler
> Henrik Bengtsson > on Wed, 22 Sep 2021 20:48:05 -0700 writes: > The update in rev 80946 > (https://github.com/wch/r-source/commit/d970867722e14811e8ba6b0ba8e0f478ff482f5e) > caused as.character() on hexmode objects to no longer pads with zeros. Yes -- very much on purp

[Rd] R-devel: as.character() for hexmode no longer pads with zeros

2021-09-22 Thread Henrik Bengtsson
The update in rev 80946 (https://github.com/wch/r-source/commit/d970867722e14811e8ba6b0ba8e0f478ff482f5e) caused as.character() on hexmode objects to no longer pads with zeros. Before: > x <- structure(as.integer(c(0,8,16,24,32)), class="hexmode") > x [1] "00" "08" "10" "18" "20" > as.character(x