An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140715/de646ac1/attachment.pl>
request of information about creating DLL from R to be used in other languages/programs
5 messages · Ludovic Brossard, Ludovic.Brossard, Jeff Newmiller
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. [[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.html and provide commented, minimal, self-contained, reproducible code.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140715/37db0b18/attachment.pl>
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
Thanks for all these indications
Regards
Ludovic Brossard
-----Message d'origine-----
De : Jeff Newmiller [mailto:jdnewmil at dcn.davis.CA.us]
Envoy? : mercredi 16 juillet 2014 04:06
? : Ludovic.Brossard
Cc : Ludovic Brossard; r-help at r-project.org
Objet : Re: [R] request of information about creating DLL from R to be used in other languages/programs
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