Hi! I am working on dynamically loading some C code into R and have my programs working on a DEC alpha. I have tried porting it to windows and found that the gamma function is not loaded in the symbol table there, but is under unix. While I can add in the gamma function, I would prefer to use the same one as in R and have the same code under unix and wondows. Is there a way to access the internal gamma function from c in windows? I am using R 1.6.0 best, Merlise __________________________________________________ | | | Merlise Clyde, Associate Professor | | Institute of Statistics and Decision Sciences | | 219A Old Chemistry, BOX 90251 | | Duke University | | Durham, NC 27708-0251 | | | | Office Phone: (919) 681-8440 | | Fax: (919) 684-8594 | | email: clyde at stat.duke.edu | | web: http://www.stat.duke.edu/~clyde | |________________________________________________|
is.loaded("gamma") is FALSE in Windows
2 messages · Merlise Clyde, Brian Ripley
On Wed, 4 Dec 2002, Merlise Clyde wrote:
Hi! I am working on dynamically loading some C code into R and have my programs working on a DEC alpha. I have tried porting it to windows and found that the gamma function is not loaded in the symbol table there, but is under unix. While I can add in the gamma function, I would prefer to use the same one as in R and have the same code under unix and wondows. Is there a way to access the internal gamma function from c in windows?
What function do you think you are getting here? R's internal gamma function is not symbol `gamma', and it is not documented to be either. If you look in `Writing R Extensions' you will find that there is a public interface to a gamma function .... If in desperation, read the documentation!
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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595