Skip to content

is.loaded("gamma") is FALSE in Windows

2 messages · Merlise Clyde, Brian Ripley

#
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  |
|________________________________________________|
#
On Wed, 4 Dec 2002, Merlise Clyde wrote:

            
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!