Re: [Rd] Understanding the sequence of events when calling the R dpois function

2018-06-04 Thread Clark Fitzgerald
Hi Jason, Duncan Temple Lang answered a similar question for me last year and wrote up the method here: http://dsi.ucdavis.edu/Notes/R/FindingNativeCodeInR.html Basically the C level debugger can be very helpful for figuring out what's happening. Best, Clark On Fri, Jun 1, 2018 at 4:47 AM,

Re: [Rd] Understanding the sequence of events when calling the R dpois function

2018-06-01 Thread Jason Serviss
Chuck and Greg, Thanks a lot for your help! I have a much better understanding now of what is happening “under the hood”. Kind Regards, Jason > On 31 May 2018, at 20:08, Greg Minshall wrote: > > Jason, > > as Chuck Berry (to whom, *thanks* for 'do {...} while(0)'!) suggested, > using grep,

Re: [Rd] Understanding the sequence of events when calling the R dpois function

2018-05-31 Thread Greg Minshall
Jason, as Chuck Berry (to whom, *thanks* for 'do {...} while(0)'!) suggested, using grep, or even grep executed from find, such as find . -type f -exec grep -H "dpois" \{\} \; | less (executed from the root of an R source tree), is your friend. cheers, Greg

Re: [Rd] Understanding the sequence of events when calling the R dpois function

2018-05-31 Thread Berry, Charles
> On May 31, 2018, at 8:25 AM, Jason Serviss wrote: > > Hello all, > > I am trying to get a better understanding of the underlying code for the > stats::dpois function in R and, specifically, what happens under the hood > when it is called. I finally managed to track down the C course at:

[Rd] Understanding the sequence of events when calling the R dpois function

2018-05-31 Thread Jason Serviss
Hello all, I am trying to get a better understanding of the underlying code for the stats::dpois function in R and, specifically, what happens under the hood when it is called. I finally managed to track down the C course at: https://github.com/wch/r-source/blob/trunk/src/nmath/dpois.c. It