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