Skip to content
Prev 60143 / 63424 Next

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

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:
[1] "00" "08" "10" "18" "20"
[1] "00" "08" "10" "18" "20"

After:
[1] "00" "08" "10" "18" "20"
[1] "0"  "8"  "10" "18" "20"

Was that intended?

/Henrik

PS. This breaks R.utils::intToHex()
[https://cran.r-project.org/web/checks/check_results_R.utils.html]