[Rd] formatC(<zero-length>) doesn't keep attributes
Suharto Anggono Suharto Anggono
@uh@rto_@nggono @end|ng |rom y@hoo@com
Sat Oct 9 04:40:10 CEST 2021
By r80949, 'formatC' code in R devel has
if (!(n <- length(x))) return(character())
If 'x' has length zero, the return value of 'formatC' doesn't have attributes. It doesn't follow the documented "Value": "A character object of the same size and attributes as x".
Based on my observation, the early return could be removed.
n <- length(x)
More information about the R-devel
mailing list