[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

Re: [Rd] formatC(character()) returns length 1 result, but is documented otherwise

2021-09-22 Thread Martin Maechler
> Davis Vaughan > on Mon, 13 Sep 2021 16:35:47 -0400 writes: > Hi all, > I believe I have either found a small bug, or a possible inconsistency in > documentation. formatC() returns a length 1 result if given a length 0 > character() as input. > formatC(character

[Rd] formatC(character()) returns length 1 result, but is documented otherwise

2021-09-22 Thread Davis Vaughan
Hi all, I believe I have either found a small bug, or a possible inconsistency in documentation. formatC() returns a length 1 result if given a length 0 character() as input. formatC(character()) #> [1] "" But the return value documentation states that it returns: "A character object of same siz