I have some programs which were writen in mathematica or c language, but I donot know how to use these software. So I want to run them in R. Can I do it ? How to run "mathematica" or "c" programs in R? Jian Zhang [[alternative HTML version deleted]]
On 6/22/07, Zhang Jian <jzhang1982 at gmail.com> wrote:> I have some programs which were writen in mathematica or c language, but I > donot know how to use these software. So I want to run them in R. > Can I do it ? > How to run "mathematica" or "c" programs in R?To paraphrase Thomas Lumley, Sure. Just reverse the procedure you use to R code in Mathematica.
To run MATHEMATICA programs in R you need to have MATHEMATICA installed on your PC. Then if you just want to run the MATHEMATICA program it is probably best to run it in MATHEMATICA even if you are not familiar with MATHEMATICA. You should you run MATHEMATICA from R only if you wish to integrate the MATHEMATICA code in a larger R program. Best Regards John Frain On 22/06/07, Zhang Jian <jzhang1982 at gmail.com> wrote:> I have some programs which were writen in mathematica or c language, but I > donot know how to use these software. So I want to run them in R. > Can I do it ? > How to run "mathematica" or "c" programs in R? > > Jian Zhang > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >-- John C Frain Trinity College Dublin Dublin 2 Ireland www.tcd.ie/Economics/staff/frainj/home.html mailto:frainj at tcd.ie mailto:frainj at gmail.com
Hallo, I just know a solution if you use MATLAB. Here you need the library R.matlab and there the functions writeMat and readMat. You can download the package on CRAN. Corinna ************************************************************************** Corinna Schmitt, Dipl.Inf.(Bioinformatik) Fraunhofer Institut f?r Grenzfl?chen- & Bioverfahrenstechnik Nobelstrasse 12, B 3.24 70569 Stuttgart Germany phone: +49 711 9704044 fax: +49 711 9704200 e-mail: Corinna.Schmitt at igb.fraunhofer.de http://www.igb.fraunhofer.de -----Urspr?ngliche Nachricht----- Von: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] Im Auftrag von Zhang Jian Gesendet: Freitag, 22. Juni 2007 23:26 An: r-help Betreff: [R] How to run "mathematica" or "c" programs in R? I have some programs which were writen in mathematica or c language, but I donot know how to use these software. So I want to run them in R. Can I do it ? How to run "mathematica" or "c" programs in R? Jian Zhang [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch 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.