[R] Calling C function in R

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Dec 16 09:10:41 CET 2003


On Tue, 16 Dec 2003, Manoj - Hachibushu Capital wrote:

> Hi All,
> 	I am trying to write a c function to optimize loop processing.
> Having read the R extension and trying out a few samples I was pretty
> comfortable with the basics.
>
> 	However, I am wondering if there is anyway to call tseries
> functions like adf.test or po.test from within c function. Any pointers/
> code sample would be greatly appreciated.

Yes, this is described with code samples in `Writing R Extensions', in the
section `Evaluating R expressions from C'.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list