[R] question: DLL or EXE from R procedures
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Dec 24 17:15:52 CET 2003
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 at stat.math.ethz.ch mailing list
> >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>
--
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-help
mailing list