Re: [Rd] call R function from C code

2013-05-10 Thread Matwey V. Kornilov
Thank you all, the following seems to work just great for me: PROTECT(sx = eval(lang3(install("solve"),sA,sb),R_BaseEnv)) __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] call R function from C code

2013-05-10 Thread Matwey V. Kornilov
Thanks, It is what I was looking for. But now, I poorly understand environment conception. My initial C function in invoked from R (in some environment I suppose), how do I know this env, to provide it to eval()? Or, may I just make a clean env? 10.05.2013 00:13, Gabriel Becker пишет: Matw

[Rd] call R function from C code

2013-05-09 Thread Matwey V. Kornilov
Hi, I am writing C code for R, but in middle of the routine I want to call solve(A,b) function. What is the right way to solve linear set inside C code? Is it ok to just invoke La_solve()? __ R-devel@r-project.org mailing list https://stat.ethz.ch/m