[R] Calling R from within Matlab Code

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Thu Aug 22 19:42:24 CEST 2002


Another option is to use one of the R<-->Python interfaces (RSPython, RPy)
in conjunction with the Python<-->MatLab interface 'PyMat'
http://claymore.engineer.gvsu.edu/~steriana/Python.

-Greg

> -----Original Message-----
> From: Duncan Temple Lang [mailto:duncan at research.bell-labs.com]
> Sent: Wednesday, August 21, 2002 4:59 PM
> To: Kamyar Hazaveh Hesarmaskan
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Calling R from within Matlab Code
> 
> 
> As far as I am aware, there is no package that currently does this.
> Some people (Friedrich Leisch and others in Vienna) are working on
> using XML to communicate between the two systems.
> 
> I am in the process of putting together an R-Octave interface
> which allows one to call R from Octave. An R-Matlab interface
> would be relatively easy to construct by adapting the R-Octave
> code in a few spots. I have looked at embedding R in Matlab
> over the past few years and it appears that there are enough
> hooks for this.
> 
> In principal, all you need to do is create R as a shared library
> and then dynamically load some code into Matlab that is linked
> against that and which creates R expressions  to be evaluated
> from Matlab calls. Many of the Omegahat packages do this, so example
> code is available.
> 
> I'll hopefully make the R-Octave code available in the next few weeks.
> 
> Kamyar Hazaveh Hesarmaskan wrote:
> > 
> > Hi,
> > 
> > Does anyone know how I can call R from within Matlab and 
> return the result 
> > to Matlab?
> > 
> > Thanks,
> > Kamyar
> > 
> > -- 
> > ==================================
> > FROM:   Kamyar Hazaveh Hesarmaskan
> >         Ontario, Canada
> > E-mail: kamyar_hazaveh at ieee.org
> > 
> > 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> > 
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 
> -- 
> _______________________________________________________________
> 
> Duncan Temple Lang                duncan at research.bell-labs.com
> Bell Labs, Lucent Technologies    office: (908)582-3217
> 700 Mountain Avenue, Room 2C-259  fax:    (908)582-3340
> Murray Hill, NJ  07974-2070       
>          http://cm.bell-labs.com/stat/duncan
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list