From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Thu 25 Dec 2003 - 03:15:52 EST
Message-id: <Pine.LNX.4.44.0312241609310.19088-100000@gannet.stats>
On Wed, 24 Dec 2003, Spencer Graves wrote:
> While Uwe is correct about the absence of a compiler for R, one
> can call R from other languages such as C. A description of this can be
> found, e.g., from R 1.8.1, help.start() -> "Writing R Extensions" ->
> "Evaluating R expressions from C".
But first you have to get an `R expression', and you also need to have R
initialized and running, so this is only really of use from an package
called from R in the first place.
I haven't seen the reply I sent several hours ago, but that mentioned
several routes, such as embedding R via (D)COM and calling R with a system
call.
> Also, the many R functions actually
> call C code, which could be called directly.
In principle yes, but I would not try doing regression that way -- just
think about the code needed to encode a formula (and BTW that calls back
into an R interpreter).
> hope this helps.
> spencer graves
>
> Uwe Ligges wrote:
>
> >PaTa PaTaS wrote:
> >
> >
> >>Hi,
> >>I wonder if it is possible to create an DLL or EXE file performing R procedures. Instead of running R, reading data and calling some procedures, I would like to use R functions in the following way: "C:\linearRegression.exe data.txt" which would produce let's say file "output.txt" with the results. Is there some way how to do it?
> >>Thanks a lot. Pavel Vanecek
> >>
> >>
> >
> >No. There is not compiler for R code available.
> >
> >Uwe Ligges
> >
> >______________________________________________
> >R-help@stat.math.ethz.ch mailing list
> >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
> >
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
-- Brian D. Ripley, ripley@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______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Thu 01 Jan 2004 - 09:21:00 EST