[R] Compilation of R code

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jan 7 17:55:08 CET 2005


Depire Alexandre wrote:

> Hello,
> I'm a newbie on this list.
> I have a R code but its execution take a very long time.
> Is it possible to compile it (in C for example) to decrease the execution 
> time ?

a) R is not C.

b) No, we don't have an R compiler (except - in development - a byte 
compiler written by Luke Tierney, but that won't save magnitudes).

You might want either to optimize the code, given it not very well 
written, or reqrite parts of the code in C. See the "Writing R 
Extensions" manual.

Uwe Ligges




More information about the R-help mailing list