Re: [Rd] Should seq.Date() return double storage?

2021-09-08 Thread Kurt Hornik
> Michael Chirico via R-devel writes: > today <- Sys.Date() > typeof(today) > # [1] "double" > typeof(seq(today, by=1, length.out=2)) > # [1] "integer" > Clearly minor as it doesn't seem to have come up before (e.g. coercion > to numeric will happen automatically whenever fractional dates

[Rd] Should seq.Date() return double storage?

2021-09-07 Thread Michael Chirico via R-devel
today <- Sys.Date() typeof(today) # [1] "double" typeof(seq(today, by=1, length.out=2)) # [1] "integer" Clearly minor as it doesn't seem to have come up before (e.g. coercion to numeric will happen automatically whenever fractional dates are needed); I only noticed because of a test using