Re: [Rd] Why is any() only defined for a numeric and not logical data.frame?

2020-02-16 Thread Rui Barradas
Hello, As it turns out, this is valid for all generics of the ?Summary group. From help("Summary"): Group "Summary": all, any sum, prod min, max range methods("Summary") shows that there is a method for df's. And the code of Summary.data.frame has an explicit test if (!is.numeric(

[Rd] Why is any() only defined for a numeric and not logical data.frame?

2020-02-16 Thread Karolis Koncevičius
Hello, I recently stumbled on an unusual behaviour of any() and all() and have been adviced from StackOverflow to share it here [1]. df1 <- data.frame(A=TRUE, B=FALSE) df2 <- data.frame(A=1, B=0) > any(df1) Error in FUN(X[[i]], ...): only defined on a data frame with al

Re: [Rd] Development version of R fails tests and is not installed

2020-02-16 Thread Berwin A Turlach
G'day Jeroen, On Sun, 9 Feb 2020 01:04:24 +0100 Jeroen Ooms wrote: > I think the intention was to add something similar in R's autoconf > script to enable sse on 32-bit unix systems, but seemingly this hasn't > happened. For now I think you should be able to make your 32-bit > checks succeed if