Re: [Rd] Cursor not behaving properly

2014-11-19 Thread Henrik Bengtsson
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

Re: [Rd] Cursor not behaving properly

2014-11-19 Thread Scott Kostyshak
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

[Rd] nchar reporting wrong width when zero-space character is present?

2014-11-19 Thread Mark van der Loo
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