[Rd] R Regression Routines called in C/C++

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 30 10:24:59 CEST 2006

On Tue, 30 May 2006, tzotchev at euv-frankfurt-o.de wrote:

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

Regression is done in Fortran and is not part of the standalone nmath (nor 
are the optimization routines).  If you meant from C/C++ code in an R 
package, take a look at e.g. lqs in MASS which does this via the routines 
declared in R_ext/Applic.h.  Similar routines are called by lm.fit.

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-devel mailing list