An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131115/3c6a8398/attachment.pl>
modify functions in "stats", but .Call(C_BinDist, ...) couldn't load C function
4 messages · dan wang, Rui Barradas, Brian Ripley
Hello, If your C function is in a shared library, take a look at ?dyn.load. Hope this helps, Rui Barradas Em 15-11-2013 14:34, dan wang escreveu:
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? 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131115/96809846/attachment.pl>
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