Re: [Rd] Calling Fortran90 code from R

2009-12-29 Thread Simone Giannerini
Dear Hartwig, glad to know you workarounded your problem, please see my comments 1. if put in a module, the exported symbol of the subroutines may change with different compilers. Actually, they change for the same compiler in different platforms. Please see the following begin file try.f90 **

Re: [Rd] Calling Fortran90 code from R

2009-12-29 Thread Hartwig Deneke
2009/12/29 Simone Giannerini : > Dear Hartwig, > > I think there are many packages that use F90 code and you should really be > able to call it by following the advices in the R-exts > manual. There are no major differences with F77 and you do not need a C > wrapper. Maybe you might start with a si

Re: [Rd] Calling Fortran90 code from R

2009-12-29 Thread Simone Giannerini
Dear Hartwig, I think there are many packages that use F90 code and you should really be able to call it by following the advices in the R-exts manual. There are no major differences with F77 and you do not need a C wrapper. Maybe you might start with a simple example like this one. start file fo

[Rd] Calling Fortran90 code from R

2009-12-29 Thread Hartwig Deneke
Dear all, I am currently trying to create a package wrapping Fortran90 code, the RRTMG radiative transfer model( http://rtweb.aer.com/rrtm_frame.html). I am doing this on a Linux workstation, with gcc/gfortran, in case this matters. The code heavily relies on F90 features, in particular modules, w