Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-11 Thread Gabe Becker
Emil et al., On Mon, Jun 11, 2018 at 1:08 AM, Emil Bode wrote: > I don't think there's much wrong with is.na(as_date(Inf, > origin='1970-01-01'))==FALSE, as there still is some "non-NA-ness" about > the value (as difftime shows), but that the output when printing is > confusing. The way cat is

[Rd] Rgui 3.5.0 print issue

2018-06-11 Thread Diego Zardetto
Dear all, I would like to have your opinion about an issue I have recently run into while using tcltk in R 3.5.0 under Windows 7 64bit. Here is a reproducible example of the issue, along with information about platform and OS.

Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-11 Thread Emil Bode
I don't think there's much wrong with is.na(as_date(Inf, origin='1970-01-01'))==FALSE, as there still is some "non-NA-ness" about the value (as difftime shows), but that the output when printing is confusing. The way cat is treating it is clearer: it does print Inf. So would this be a solution?

Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-11 Thread Joris Meys
On Mon, Jun 11, 2018 at 11:12 AM, Martin Maechler < maech...@stat.math.ethz.ch> wrote: > > and a Date vector *is* atomic .. (so I'm confused about what > that issue is .. but read one. > Indeed. I tend to exclude everything with a formal class from "atomic" (eg factors et al) because they do beha

Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na()

2018-06-11 Thread Martin Maechler
> Joris Meys > on Sat, 9 Jun 2018 13:45:21 +0200 writes: > And now I've seen I copied the wrong part of ?is.na >> The default method for is.na applied to an atomic vector >> returns a > logical vector of the same length as its argument x, > containing TRUE for thos