Re: [Rd] Compilation Error when DEBUG_approx Toggled on in RISC-V

2023-02-24 Thread Martin Maechler
> Jane He > on Thu, 23 Feb 2023 15:33:23 -0800 writes: > Hi all, > While compiling R to RISC-V64 architecture and debugging in R's C source > codes, I think I have found a small bug. Can anyone please verify whether > it is a real bug? > The possible bug lies in

Re: [Rd] Possible NA Propagation Failure in RISC-V64 CPU?

2023-02-24 Thread Tomas Kalibera
On 2/24/23 00:39, Jane He wrote: Hi all, I am currently compiling R to RISC-V64 CPU and I think I have discovered a NA propagation failure. How R implements NA (not available) and NaN (not-a-number) is explained in detail here: https://stat.ethz.ch/pipermail/r-devel/2014-February/068380.html.

Re: [Rd] Possible NA Propagation Failure in RISC-V64 CPU?

2023-02-24 Thread Ivan Krylov
On Thu, 23 Feb 2023 15:39:08 -0800 Jane He wrote: > In short, according to my understanding of R's convention, any > calculation involving NA but no NaN should result in NA (called NA > propagation), and any calculation involving NaN but no NA should > result in NaN. Calculations involving both N

Re: [Rd] `dendrapply` Enhancements

2023-02-24 Thread Lakshman, Aidan H
Hi Toby, Thanks for your reply! I haven�t heard about the R project sprint, but I�ll definitely check it out. UK is going to be a little hard for me to get to funding-wise, but I�ll try to apply for funding. I appreciate your other comments. As far as coding style, I did do everything I could

[Rd] Possible NA Propagation Failure in RISC-V64 CPU?

2023-02-24 Thread Jane He
Hi all, I am currently compiling R to RISC-V64 CPU and I think I have discovered a NA propagation failure. How R implements NA (not available) and NaN (not-a-number) is explained in detail here: https://stat.ethz.ch/pipermail/r-devel/2014-February/068380.html. In short, according to my understan

[Rd] Compilation Error when DEBUG_approx Toggled on in RISC-V

2023-02-24 Thread Jane He
Hi all, While compiling R to RISC-V64 architecture and debugging in R's C source codes, I think I have found a small bug. Can anyone please verify whether it is a real bug? The possible bug lies in the file `R-4.2.2/src/library/stats/src/approx.c` in function `R_approxfun` around line 148: #ifde

Re: [Rd] `dendrapply` Enhancements

2023-02-24 Thread Toby Hocking
Hi Aidan, I think you are on the right email list. I'm not R-core, but this looks like an interesting/meaningful/significant contribution to base R. I'm not sure what the original dendrapply looks like in terms of code style (variable names/white space formatting/etc) but in my experience it is imp

[Rd] `dendrapply` Enhancements

2023-02-24 Thread Lakshman, Aidan H
Hi everyone, My apologies if this isn�t the right place to submit this�I�m new to the R-devel community and still figuring out what is where. If people want to skip my writeup and just look at the code, I�ve made a repository for it here: https://github.com/ahl27/new_dendrapply/tree/master. I�