I would like to call the R regression routines in C/C++. I have seen that it is possible to call distribution function, optimisation routines etc, but is it possible to call a simple OLS and which is the relevant header file? Thanks.