FYI, it might be useful to check if the bug also appears on R-devel as
well as on earlier versions of R. That might narrow down whether it
was introduced in a particular R version or not, which in turn would
be useful to whoever might try to tackle this problem. It might not
even be an R problem
On Tue, Nov 18, 2014 at 9:50 PM, Scott Kostyshak wrote:
> On Mon, Nov 10, 2014 at 10:52 AM, Kaiyin Zhong (Victor Chung)
> wrote:
>> I found a strange bug in R recently (version 3.1.2):
>>
>> As you can see from the screenshots attached, when the cursor passes the
>> right edge of the console, ins
Dear list,
If I include the zero-width non-breaking space (\ufeff) in a string,
nchar seems to compute the wrong number of columns used by 'cat'.
> x <- "f\ufeffoo"
> x
[1] "foo"
> nchar(x,type="width")
[1] 2
I would expect "3" here. Going through the documentation of 'Encoding'
and 'encodeStri