Message-ID: <52864601.70407@stats.ox.ac.uk>
Date: 2013-11-15T16:04:17Z
From: Brian Ripley
Subject: modify functions in "stats", but .Call(C_BinDist, ...) couldn't load C function
In-Reply-To: <CA+1Z_Yvap8PKWzaLuhHAXfdLJU4w6nnAkCJCngsRHWdWLygoPQ@mail.gmail.com>
On 15/11/2013 14:34, dan wang wrote:
> Hi all,
>
> I am trying to write a new function based on an existing function in
> "stats".
>
> This function requires to call a c program "C_BinDist". The new function
> couldn't work without load this c script.
>
> How can I find this "C_BinDist" function and load it to make my new
> function work through?
You are confused: C_BinDist is not a C program and not a function. It
is an R object in the stats namespace, so access it as you would any
other unexported object in a namespace.
>
> Thanks,
>
> Dan
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Please do: no HTML as requested, and this seems to indicate that the
correct list was R-devel.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595