Hello! Has anyone successfully compiled F90 sources in R-package? I found the same question on r-devel list from 2002 and I wonder if there is any progress. I heard that g95 and gfortran can be usable. And one more thing. I have a program written in F90 and lets suppose that compiler is not a problem. I've read manual 'Writing R Extensions' and successfully loaded one F77 subroutine in R for test and I had no problem. However, what is the strategy if one has a whole program i.e. main program + subroutines and wants to call it from R? Thanks in advance! -- Lep pozdrav / With regards, Gregor Gorjanc ------------------------------------------------------------------------ University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
On Sun, Mar 27, 2005 at 03:26:39AM +0200, Gorjanc Gregor wrote:> Hello! > > Has anyone successfully compiled F90 sources in R-package? I found the > same question on r-devel list from 2002 and I wonder if there is any > progress. I heard that g95 and gfortran can be usable. > > And one more thing. I have a program written in F90 and lets suppose that > compiler is not a problem. I've read manual 'Writing R Extensions' and > successfully loaded one F77 subroutine in R for test and I had no problem. > However, what is the strategy if one has a whole program i.e. main program > + subroutines and wants to call it from R?Well, you have essentially two options: 1. Rewrite your main program as an R function, from which you call the subroutines (thru the .Fortran interface). 2. Rewrite your main program as a Fortran subroutine, write an R wrapper, that calls your new subroutine (thru the .Fortran interface). Choose whatever is simplest. G?ran> > Thanks in advance! > > -- > Lep pozdrav / With regards, > Gregor Gorjanc > > ------------------------------------------------------------------------ > University of Ljubljana > Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan > Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si > Groblje 3 tel: +386 (0)1 72 17 861 > SI-1230 Domzale fax: +386 (0)1 72 17 888 > Slovenia > > ______________________________________________ > R-devel at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- G?ran Brostr?m tel: +46 90 786 5223 Department of Statistics fax: +46 90 786 6614 Ume? University http://www.stat.umu.se/egna/gb/ SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se
Hello! I posted this question already a week ago, but didn't get any response. I will try again if anybody, who can answer this, wasn't reading mails during easter holidays. Has anyone successfully compiled F90 sources in R-package? I found the same question on r-devel list from 2002 and I wonder if there is any progress. I heard that g95 and gfortran can be usable. Thanks in advance! -- Lep pozdrav / With regards, Gregor Gorjanc ------------------------------------------------------------------------ University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
I saw the following in a Springer catalog recently: Developing Statistical Software in Fortran 95 Lemmon, David R., Schafer, Joseph L. 2005, XVI, 328 p., Softcover ISBN: 0-387-23817-4 which has the following in the description: Through detailed examples, readers are shown how to call Fortran procedures from packages including Excel, SAS, SPSS, S-PLUS, R, and MATLAB. They are even given a tutorial on creating GUIs for Fortran computational code using Visual Basic.NET. I believe the publication date is April 2005, so you might want to wait, or pre-order it on the Springer web site. Andy> From: Gorjanc Gregor > > Hello! > > I posted this question already a week ago, but didn't get any > response. I > will try again if anybody, who can answer this, wasn't reading mails > during easter holidays. > > Has anyone successfully compiled F90 sources in R-package? I found the > same question on r-devel list from 2002 and I wonder if there is any > progress. I heard that g95 and gfortran can be usable. > > Thanks in advance! > > -- > Lep pozdrav / With regards, > Gregor Gorjanc > > -------------------------------------------------------------- > ---------- > University of Ljubljana > Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan > Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si > Groblje 3 tel: +386 (0)1 72 17 861 > SI-1230 Domzale fax: +386 (0)1 72 17 888 > Slovenia > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > >