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

dyn.load("myfortransubroutines.so")

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.

______________________________________________
R-help@r-project.org 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.

Reply via email to