Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-27 Thread Joshua Ulrich
Follow-up (inline) on my comment about a potential issue in `[<-.Date`. On Mon, May 27, 2019 at 9:31 AM Michael Chirico wrote: > > Yes, thanks for following up on thread here. And thanks again for clearing > things up, your email was a finger snap of clarity on the whole issue. > > I'll add that

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-27 Thread Michael Chirico
Yes, thanks for following up on thread here. And thanks again for clearing things up, your email was a finger snap of clarity on the whole issue. I'll add that actually it was data.table's code at fault on the storage conversion -- note that if you use an arbitrary sub-class 'foo' with no methods

Re: [Rd] rbind has confusing result for custom sub-class (possible bug?)

2019-05-27 Thread Joshua Ulrich
On Sun, May 26, 2019 at 6:47 AM Joshua Ulrich wrote: > > On Sun, May 26, 2019 at 4:06 AM Michael Chirico > wrote: > > > > Have finally managed to come up with a fix after checking out sys.calls() > > from within the as.Date.IDate debugger, which shows something like: > > > > [[1]] rbind(DF, DF) >

Re: [Rd] bug in rbind?

2019-05-27 Thread Martin Maechler
With thanks to Krzysztof Banas (and Joshua Ulrich), Almost 2.5 years ago, there's been a bug report that never made it to https://bugs.r-project.org/ and has been forgotten ... until I've stumbled over this again. I've found an easy fix (and improved readability also by adding comments) and com

Re: [Rd] [R] Increasing number of observations worsen the regression model

2019-05-27 Thread peter dalgaard
Yes, it is important that it only happens with certan BLAS, so probably not really an R issue. However, there has been some concern over the C/Fortran interfaces lately, so if you could narrow it down to a specific BLAS routine, it could prove useful for the developers. One fairly easy thing t

Re: [Rd] writing Unicode text to the Windows clipboard

2019-05-27 Thread Martin Maechler
> Jennifer Bryan > on Thu, 23 May 2019 00:03:05 -0400 writes: > Hello, I'm interested in moving text from and to the > clipboard that cannot necessarily be represented in the > native encoding. So, really, this is about Windows. > I can successfully read from the clip

Re: [Rd] "if" function in pure R?

2019-05-27 Thread Stepan
Hello Alexandre, there are two sides of your question it seems to me: - there is no possibility to extend the R parser with new syntax. The R parser knows to internally "rewrite"(*) things such as if (a>b) print(1) else print(2) into `if`(a>b, print(1), print(2)) The parser has a fixed set

Re: [Rd] Give update.formula() an option not to simplify or reorder the result -- request for comments

2019-05-27 Thread Thomas Mailund
With a bit of meta programming that manipulates expressions, I don’t think this would be difficult to implement in a package. Well, as difficult as it is to implement a CAS, but not harder. I wrote some code for symbolic differentiation — I don’t remember where I put it — and that was easy. But

Re: [Rd] coerce SEXP type to C++ matrix class and back

2019-05-27 Thread kklot
perhaps you don't need this anymore but now after extract the dimension m, n, we can simply generate arma matrix as mat an_arma_mat(REAL(RA), m, n); similarly you can convert RB to an arma matrix pointer, operate on it then return directly RB to R. I am testing a simple C++ function that takes

Re: [Rd] Possible bug when finding shared libraries during staged installation

2019-05-27 Thread Tomas Kalibera
Fixed in R-devel and R-patched. Best, Tomas On 5/24/19 6:56 PM, Kara Woo wrote: > Yes, that's the same result that I see as well. > > If you still want the formal report I can create one if someone adds > me to bugzilla, but it sounds like that may not be necessary. Thanks > for looking into th