[Rd] call R function from C code

Simon Urbanek simon.urbanek at r-project.org
Thu May 9 21:54:40 CEST 2013


On May 8, 2013, at 2:24 PM, Matwey V. Kornilov wrote:

> 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()?
> 

There is no such thing as La_solve(). You can use dgesv from LAPACK, though.
However, the subject poses a different question -- you can call R function from C code by using eval().

Cheers,
Simon



More information about the R-devel mailing list