[Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-06 Thread Davis Vaughan
Hi all, I have found another POSIXlt bug while I've been fiddling around with it. This one only appears on specific OSes, because it has to do with the fact that the `gmtoff` field is optional, and isn't always used on all OSes. It also doesn't seem to be specific to r-devel, I think it has been t

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-06 Thread Prof Brian Ripley
On 06/10/2022 09:41, Berwin A Turlach wrote: G'day all, On Thu, 6 Oct 2022 10:15:29 +0200 Martin Maechler wrote: Davis Vaughan on Wed, 5 Oct 2022 17:04:11 -0400 writes: > # Weird, where is the `NA`? > as.Date(x) > #> [1] "2013-01-31" "1970-01-01" "2013-03-31" > ```

Re: [Rd] as.character.POSIXt in R devel

2022-10-06 Thread Suharto Anggono Suharto Anggono via R-devel
In 'as.character.POSIXt' in R devel after r83010: if(getOption("OutDec") != OutDec) { op <- options(OutDec = OutDec);  on.exit(op) } on.exit(op) does nothing. It should be on.exit(options(op)) Is it OK to output the seconds using scientific notation? Example (modified from https://bu

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-06 Thread Berwin A Turlach
G'day all, On Thu, 6 Oct 2022 10:15:29 +0200 Martin Maechler wrote: > > Davis Vaughan > > on Wed, 5 Oct 2022 17:04:11 -0400 writes: > > # Weird, where is the `NA`? > > as.Date(x) > > #> [1] "2013-01-31" "1970-01-01" "2013-03-31" > > ``` > > I agree that the

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-06 Thread Martin Maechler
> Davis Vaughan > on Wed, 5 Oct 2022 17:04:11 -0400 writes: > Hi all, > I think I have discovered a bug in the conversion from POSIXlt to Date that > has been introduced in r-devel. > It affects lubridate, but surprisingly didn't cause test failures there. > Ins