Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d/p/q/r stats functions #29

Closed
jasonserviss opened this issue May 29, 2018 · 1 comment
Closed

d/p/q/r stats functions #29

jasonserviss opened this issue May 29, 2018 · 1 comment

Comments

@jasonserviss
Copy link

Hello Jim,

When "looking up" the standard distribution functions in the stats package, I get the following:

lookup::lookup('dpois')

function (x, lambda, log = FALSE)
.Call(C_dpois, x, lambda, log)

As I understand it, the function that is displayed is the R function that is calling C_dpois which is the compiled (C) code that is actually performing the calculations. I had kind of expected that it would be the underlying C code that is displayed instead... This seems to also be the case for others, i.e. rnorm, runif, etc. Maybe this is due to my lack of understanding, or potentially a issue you haven't gotten around to tackling yet, but I just thought I'd let you know. I also had a look at the R git mirror, since you mention in the Readme that the compiled code is pulled from there, and was unable to locate the code for dpois there either (I am sure it is probably there somewhere but...). Maybe it is "hidden away" somewhere and the same reason I am struggling to find it is the same reason lookup is struggling....

Regards,
Jason

@jimhester
Copy link
Owner

This is because recommended packages are not looked up properly, since the source is only available in the R svn mirror rather than in the CRAN mirror like non-recommended packages.

duplicate of #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants