From @uh@rto_@nggono @end|ng |rom y@hoo@com  Sat Oct  9 04:40:10 2021
From: @uh@rto_@nggono @end|ng |rom y@hoo@com (Suharto Anggono Suharto Anggono)
Date: Sat, 9 Oct 2021 02:40:10 +0000 (UTC)
Subject: [Rd] formatC(<zero-length>) doesn't keep attributes
References: <1932751023.1279015.1633747210908.ref@mail.yahoo.com>
Message-ID: <1932751023.1279015.1633747210908@mail.yahoo.com>

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)



[Rd] formatC(<zero-length>) doesn't keep attributes
Suharto Anggono Suharto Anggono