Re: [Rd] Generalised piping into operators

2023-04-22 Thread Michael Milton
This is all very intriguing. Normally when piping into an operator function, R throws "Error: function '+' not supported in RHS call of a pipe": > 1 |> `+`(2) Error: function '+' not supported in RHS call of a pipe This is a different error from the above "invalid use of pipe placeholder", which

Re: [Rd] Possible inconsistency between `as.complex(NA_real_)` and the docs

2023-04-22 Thread Martin Maechler
> Hi all, > > Surprisingly (at least to me), `as.complex(NA_real_)` results in > `complex(real = NA_real_, imaginary = 0)` rather than `NA_complex_`. Well, the logic here is really the mathematical equivalence: if you turn a real number x in to a complex one, say z, then z = x + i * 0 ,

Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-22 Thread D Z
Thank you Dirk and Joshua, Using Valgrind, I have found several memory leaks in the program that required some smaller rewrites. Valgrind (with Makevars flags -O0 and --ggdb) now reports no "definitely" and no "indirectly" lost bytes so that's a small win already. But two questions remain:

Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-22 Thread Dirk Eddelbuettel
On 22 April 2023 at 14:43, D Z wrote: | Thank you Dirk and Joshua, | Using Valgrind, I have found several memory leaks in the program that required | some smaller rewrites. | Valgrind (with Makevars flags -O0 and --ggdb) now reports no "definitely" and | no "indirectly" lost bytes so that's a

[R-pkg-devel] new/slightly mysterious CRAN warnings

2023-04-22 Thread Ben Bolker
Submission of most recent version of lme4 threw a NOTE on CRAN's Debian platform that we had not seen when running "R CMD check --as-cran" with the most recent SVN checkout, nor when submitted to win-builder/R-devel. These are legitimate issues (all now fixed), but we were taken by surprise