[Rd] Patch proposal for R style consistency (concerning deparse.c)

2013-04-17 Thread Paul Johnson
rse, you know much better than I do what else might break as a result of this change. In case the email list processor scrubs the patch, please try here: http://pj.freefaculty.org/scraps/deparse-pj-20130417.patch pj -- Paul E. Johnson Professor, Political Science

Re: [Rd] POSIXt oddness at end of 1969

2013-04-17 Thread peter dalgaard
Same thing happens on OS X. A bit of googling (did you know that Jimi Hendrix and the Band of Gypsies played at the Fillmore East on December 31, 1969?) reveals that the root issue is that mktime() returns -1 if the calendar time cannot be represented, which makes the case where the time _can_ b

[Rd] stack imbalance in max.col for non-real matrices

2013-04-17 Thread Michael Lawrence
It's tough to reliably reproduce, but I often get stack imbalance warnings when calling max.col() on non-real/double matrix. The code is conditionally PROTECTing but not incrementing its nprot counter for the eventual UNPROTECT. Pretty sure this would fix (but I haven't tested it): Index: array.c

[Rd] POSIXt oddness at end of 1969

2013-04-17 Thread William Dunlap
A user here noticed the following difference between Linux and Windows versions of R-2.15.3 (and R-3.0.0, I think) when using times within a second of the end of 1969: f <- function (sec = -1) { x1 <- as.POSIXct(c(2 * sec, sec, 0), origin = "1970-01-01", tz = "UTC") x2 <- as.POSIXlt(x1)

Re: [Rd] support for POSIXct classes in image.default axes

2013-04-17 Thread Michael Sumner
Perfect, thanks very much. I couldn't see the xlim/ylim solution which is really neat, and clearly better than my suggestion. Cheers, Mike. On Wed, Apr 17, 2013 at 6:15 PM, Prof Brian Ripley wrote: > On 12/04/2013 12:27, Michael Sumner wrote: > >> Hello, I would like to suggest the following ch

Re: [Rd] New code in R-devel: Rao score test for glm.

2013-04-17 Thread peter dalgaard
(R-devel is not "Dr. Dalgaard") It's been there since 2.14.0. (So the post was presumably when 2.13.x was current.) -pd On Apr 17, 2013, at 03:08 , yhu30 wrote: > Hi Dr. Dalgaard, > > I just googled one of your old posts and find it very useful. I am very > curious about whether your code

Re: [Rd] New code in R-devel: Rao score test for glm.

2013-04-17 Thread yhu30
Hi Dr. Dalgaard, I just googled one of your old posts and find it very useful. I am very curious about whether your code which implements the score test have been implemented in the glm function of R (instead of the development version of R). Thanks a lot! Yijuan -- View this message in contex

Re: [Rd] support for POSIXct classes in image.default axes

2013-04-17 Thread Prof Brian Ripley
On 12/04/2013 12:27, Michael Sumner wrote: Hello, I would like to suggest the following change to image.default in src\library\graphics\R\image.R: 98c98 < plot(NA, NA, xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs, --- plot(x[1], y[1], xlim = xlim, ylim = ylim, type = "n", xaxs