[Rd] as.vector() broken on a matrix or array of type "list"

2018-09-25 Thread Hervé Pagès
Hi, Unlike on an atomic matrix, as.vector() doesn't drop the "dim" attribute of matrix or array of type "list": m <- matrix(list(), nrow=2, ncol=3) m # [,1] [,2] [,3] # [1,] NULL NULL NULL # [2,] NULL NULL NULL as.vector(m) # [,1] [,2] [,3] # [1,] NULL NULL NULL # [2

Re: [Rd] Fwd: Bug report: cbind with numeric and raw gives incorrect result

2018-09-25 Thread Tierney, Luke
Thanks for the report and patch. Fixed in R-devel and R_patched. Best, luke On Tue, 25 Sep 2018, brodie gaslam via R-devel wrote: > > > For what it's worth the following patch fixes that particular problem on my > system.  I have not checked very carefully to make sure this does not cause > o

Re: [Rd] Fwd: Bug report: cbind with numeric and raw gives incorrect result

2018-09-25 Thread Dirk Eddelbuettel
On 25 September 2018 at 22:59, mikefc wrote: | Thanks Brodie, that's some nice detective work. | | If someone wanted to grant me access to Bugzilla, I'll be happy to post the | bug and patch there (with your permission Brodie?) and help this bug get | fixed. I think it would help your cause if

Re: [Rd] Fwd: Bug report: cbind with numeric and raw gives incorrect result

2018-09-25 Thread mikefc
Thanks Brodie, that's some nice detective work. If someone wanted to grant me access to Bugzilla, I'll be happy to post the bug and patch there (with your permission Brodie?) and help this bug get fixed. Mike. On Tue., 25 Sep. 2018, 10:53 pm brodie gaslam, wrote: > > > For what it's worth the

Re: [Rd] Fwd: Bug report: cbind with numeric and raw gives incorrect result

2018-09-25 Thread brodie gaslam via R-devel
For what it's worth the following patch fixes that particular problem on my system.  I have not checked very carefully to make sure this does not cause other problems, but at a high level it seems to make sense.  In this particular part of the code I believe `mode` is taken to be the highest

Re: [Rd] Possible bug, max argument in print.default(), on R-3.5.1-patched

2018-09-25 Thread Martin Maechler
> peter dalgaard > on Mon, 24 Sep 2018 10:16:07 +0200 writes: > Not in print.default(), but in print.data.frame(), which > is now doing its own max= handling but not passing max to > print.default (maechler, r75122 --- was this really for > r-patched? -pd Yes, becaus

[Rd] 2 minor typos

2018-09-25 Thread Marie-Helene Burle
Hello, I would like to report 2 very minor typos: 1. help file for package:base function:function The last sentence of the "Technical details" section reads: "This is not normally user-visible, but it indicated when functions are printed." Either "is" is missing ("but it is indicated") or "i

[Rd] Fwd: Bug report: cbind with numeric and raw gives incorrect result

2018-09-25 Thread mikefc
Hi there, using cbind with a numeric and raw argument produces an incorrect result. I've posted some details below, kind regards, Mike. e.g. > cbind(0, as.raw(0)) [,1] [,2] [1,]0 6.950136e-310 A longer example shows that the result is not a rounding error, is not consiste