Re: [Rd] Bug in order function

2018-05-19 Thread peter dalgaard
This caught my eye way late and only because of the Apple Mail random-scrollbag bug! However it is still not fixed in 3.5.0 and as you say, it should be easy. (Notice that you need to look at the last SO responses, the first 4 are useless...) The cause of the trouble seems to be that if decrea

[Rd] Bug on qr.coef when qr is created by a zero matrix with colnames and all y equals zero

2018-05-19 Thread Kun Ren
Dear maintainers, I'm reporting a bug in qr.coef that mishandles the colnames of matrix. A minimal reproducible example is as follows: x <- cbind(rep(0, 10), rep(0, 10)) y <- rep(0, 10) q <- qr.default(x) qr.coef(q, y) [1] NA NA If x has colnames, then qr.coef will end up with an error: x <- c