[R] request of information about creating DLL from R to be used in other languages/programs
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Wed Jul 16 04:06:26 CEST 2014
You want algorithms compiled into a dll... I am satisfied with R in its current form, so I am not a particularly good guide for you. If you wish to continue with the wrapping-R approach then you should read the Writing R Extensions document that comes with R, and study R-devel mailing list instead of this one. You should also carefully review the licensing terms for R and the contributed packages you wish to work with to avoid surprises later. (Open source software is not a free pass to get algorithm implementations to use for just anything you like... they come with some responsibilities too.)
Alternatively you could re-implement the algorithms (in the compiled language of your choice) from any original publications referenced in the R/packages documentation and proceed with your programming as you see fit.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
On July 15, 2014 1:24:25 PM PDT, "Ludovic.Brossard" <ludovic.brossard at rennes.inra.fr> wrote:
> Thanks for the answer.
>If it is possible, could you indicate me how to proceed? or what would
>be
>the best alternative?
>Regard
>Ludovic Brossard
>
>Jeff Newmiller <jdnewmil at dcn.davis.ca.us> a écrit :
>
>> Possible, but almost certainly not worth it. R is an interpreted
>> language, and the dll would have to encapsulate the whole shebang.
>>
>---------------------------------------------------------------------------
>> Jeff Newmiller The .....
> ..... Go
>> Live...
>> DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#.
>Live
>> Go...
>> Live: OO#..
>Dead: OO#.. Playing
>> Research Engineer (Solar/Batteries O.O#.
> #.O#. with
>> /Software/Embedded Controllers) .OO#.
> .OO#.
>> rocks...1k
>>
>---------------------------------------------------------------------------
>> Sent from my phone. Please excuse my brevity.
>>
>> On July 15, 2014 8:35:38 AM PDT, Ludovic Brossard
>> <Ludovic.Brossard at rennes.inra.fr> wrote:
>>> Hello
>>>
>>> My question is the following. I have tried to find a similar subject
>in
>>> archives but not found (perhaps bad search!).
>>>
>>> One of my colleague wrote a R code combining some R functions to
>create
>>> a
>>> method of calculation.
>>>
>>> I would want to use this in a program coded in Delphi.
>>>
>>> Is there possibilities to create a DLL from R code to be called in
>the
>>> Delphi program ?
>>>
>>> It would allow us to avoid rewriting code and searching
>correspondence
>>> between R functions and Delphi program (or other types of tools as
>>> TPMath).
>>>
>>> I hope to be clear in my demand an I hope you will be able to give
>me
>>> some
>>> indications or where to find it.
>>>
>>> Best regards
>>>
>>> Ludovic Brossard
>>>
>>> Ludovic BROSSARD
>>>
>>> UMR PEGASE (Physiologie, Environnement et G�n�tique pour l�Animal
>et
>>> les
>>> Syst�mes d�Elevage)
>>>
>>> INRA � Agrocampus Ouest
>>>
>>> Domaine de la Prise, 35590 Saint-Gilles, France
>>>
>>> T�l : 33 (0)2 23 48 70 57 . Fax : 33(0)2 23 48 50 80
>>>
>>> <http://www.rennes.inra.fr/pegase> www.rennes.inra.fr/pegase[1].
>>>
>>> [[alternative HTML version deleted]]
>>>
>>>
>------------------------------------------------------------------------
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.htmland provide commented,
>>> minimal, self-contained, reproducible code.
>>
>>
>
>
>
>Liens:
>------
>[1] http://www.rennes.inra.fr/pegase
>Ludovic Brossard
>INRA - UMR PEGASE
>Domaine de la Prise
>35590 SAINT GILLES
>tel : 02 23 48 70 57
>fax : 02 23 48 50 80
More information about the R-help
mailing list