[Rd] Add ... to Reduce?

2021-12-01 Thread SOEIRO Thomas
Dear list, Currently, it is needed to use anonymous functions to pass additional parameters to f in Reduce. The following patch adds ... to pass additional arguments directly and seems to work in simple cases (see example below). However, since this was not available (even though it is common

[Rd] R-devel: as.vector(x, mode = "list") drops attributes despite documented not to

2021-12-01 Thread Henrik Bengtsson
Hi, in R 4.1.2 we have: > x <- structure(as.list(1:2), dim = c(1,2)) > x [,1] [,2] [1,] 12 > as.vector(x, mode = "list") [,1] [,2] [1,] 12 whereas in recent versions of R-devel (4.2.0) we have: > x <- structure(as.list(1:2), dim = c(1,2)) > x [,1] [,2] [1,] 12 > as.ve