[R] Fortran Code to R Code

Scionforbai scionforbai at gmail.com
Wed Nov 28 13:05:55 CET 2007

help.start(), then "Writing R extensions".

You can link fortran subroutines to R by compiling them in a shared
library (.so or .dll depending on your system) by the command:

R CMD SHLIB file1.f file2.f -o myfortransubroutines.so

and then from R you first


and then you use the .Fortran function to call the fortran subroutines
with the right arguments. Pleas read the manual to have details of
implementations and variables types.

More information about the R-help mailing list