GetRNGstate() crashes with 'Segmentation fault'
On Fri, Dec 20, 2002 at 04:56:31PM +0000, ripley at stats.ox.ac.uk wrote:
~> ./a Segmentation fault
Whyever do you think that should work? If you want to link against libR.so and call into R, you do need to initialize R, and you have not done so. I also don't see that the program has any use. The complicated ways to manipulate the random number generator are really only of any use from R code (via C code, perhaps).
Yes, this code was intended to be used from R! I decided just to test it this way ;) . So, it seems to be impossible to write separate program, link it against R library, test it (and then create shared library to used from within R)? Thanks. WBR, Timur.