[R] GetRNGstate() crashes with 'Segmentation fault'
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Fri Dec 20 18:53:03 CET 2002
On Fri, 20 Dec 2002, Timur Elzhov wrote:
> 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)?
It's not impossible, but it is not straightforward.
--
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 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list