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

2018-06-09 Thread Joris Meys
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 those elements marked NA or, for numeric or complex vectors, NaN, and FALSE otherwise. Key point being

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

2018-06-09 Thread Joris Meys
Hi Werner, on ?is.na it says: > The default method for anyNA handles atomic vectors without a class and NULL. I hear you, and it is confusing to say the least. Looking deeper, the culprit seems to be in the conversion of a Date to POSIXlt prior to the formatting: > x <- as.Date(Inf,origin =

Re: [Rd] Byte-compilation failure on different architectures / low-memory systems

2018-06-09 Thread Tomas Kalibera
It turned out slightly more complicated, the fallback to AST is was already in place, but memory available to malloc got exhausted via heap expansion. Messages starting "Error: compilation failed" mean there was an error while compiling, including out of memory, and that the AST will be used -