Re: [Rd] array() ignores illegal non-list dimnames

2015-12-19 Thread Martin Maechler
> William Dunlap via R-devel > on Thu, 17 Dec 2015 14:40:18 -0800 writes: > Is there a reason that array() silently ignores dimnames > that are not a list but matrix() gives an error? >> str(matrix(11:14, 2, 2, dimnames=c("Rows","Cols"))) > Error in matrix(11:14, 2, 2

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-19 Thread Martin Maechler
> Martin Maechler > on Sat, 12 Dec 2015 10:32:51 +0100 writes: > John Chambers > on Fri, 11 Dec 2015 10:11:05 -0800 writes: >> Somehow, the most obvious fixes are always back-incompatible these days. >> The example intrigued me, so I looked into it a bit (should

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-19 Thread John Chambers
As I tried to say on Dec. 11, there are two levels of "fix": 1. The fix to the complaint in the OP's subject heading is to conform to the default third argument, strict=TRUE: as(1L, "numeric") == 1.0 This generates some incompatibilities, as for classes that extend "numeric". But still leaves