Hello,

I'm trying to implement the Beta binomial distribution as a R package.
I studied R-ext manual but still there are some problems. The code in
C seems to work except for the rbetabinom function which is not very
random (it always returns the same values for the same parameters). I
have tried to use GetRNGstate(); and PutRNGstate(); but it give a SEG
FAULT when I call GetRNGstate. You can try the code like this:

cd /path/to/src
cmake ./CMakeLists.txt
make
./r-package


I can build and install the package but when I call the functions from
R they always return NULL except for rbetabinom which remains hanged
indefinitely.

Any advise?

-- 
Joan Maspons
CREAF (Centre de Recerca Ecològica i Aplicacions Forestals)
Universitat Autònoma de Barcelona, 08193 Bellaterra (Barcelona), Catalonia
Tel +34 93 581 2915            j.masp...@creaf.uab.cat
http://www.creaf.uab.cat

Attachment: betaBinomial_0.1.tar.gz
Description: GNU Zip compressed data

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to