Skip to content
Prev 9890 / 63424 Next

paste(character(0), character(0)) == "". Why?

This seems to be deliberate, since paste.c says

    if(maxlen == 0)
	return mkString("");

but it is not documented and it is not what S (even S+3.4) does.

On the other hand, S gives
[1] " "

which looks incorrect to me (and R gives "" which I reckon to be right).

Anyone know the rhyme or reason here?