[Rd] setting the seed in standalone code using Rlib

2008-01-02 Thread David Faden
Hi, Is the below -- setSeed -- an okay way to set the seed in standalone applications making use of Rlib? It seems to work as expected. Is there a better way to do it? (I'm also looking at do_setseed but am unsure what to supply as op. findFun("set.seed", R_GlobalEnv)?) Thanks m

Re: [Rd] bus error on calling nmmin

2006-04-14 Thread David Faden
of %f at x = %f\n", value, result[0]); return 0; } $ gcc nmminDemo.c -g -I/Library/Frameworks/R.framework/Versions/2.1.1/Resources/include -L/Library/Frameworks/R.framework/Versions/2.1.1/Resources/lib -lR $ R CMD ./a.out fncount: 24 convergence code: 0 min of 13.00 at x = 1.000195 -- Davi

[Rd] bus error on calling nmmin

2006-04-13 Thread David Faden
Hi, I'm trying to get a toy program making use of nmmin to run successfully. I've gotten to the point of compiling. However, when I attempt to run my executable, I guess a bus error. I see that someone else has asked about using nmmin before