[R] pnbinom.c qnorm.c

Martin Maechler maechler at stat.math.ethz.ch
Thu Apr 17 16:30:35 CEST 2008


>>>>> "ML" == Markus Loecher <mao.loecher at gmail.com>
>>>>>     on Thu, 17 Apr 2008 09:16:50 -0400 writes:

    ML> Dear R users,
    ML> I was wondering from where I could get the C source code to compute
    ML> pnbinom() and qnorm() ?
    ML> (I would use R in batch mode but I find the startup time prohibitive, unless
    ML> there is a way to speed it up)

there definitely is, and I wonder why you haven't found it.

E.g.,

  Rscript --vanilla --slave --default-packages=stats -e 'pnorm(1.96)'
  [1] 0.9750021

is very fast.

Martin Maechler, ETH Zurich

    ML> I searched the Web and it clearly is part of the R distribution, I just
    ML> don't know how to extract them.

    ML> Thanking you !

    ML> Markus Loecher
    ML> Princeton, NJ

    ML> [[alternative HTML version deleted]]

    ML> ______________________________________________
    ML> R-help at r-project.org mailing list
    ML> https://stat.ethz.ch/mailman/listinfo/r-help
    ML> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
    ML> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list