Re: [R] R package built with Fortran code

2012-02-22 Thread MacQueen, Don
As far as I know, you must convert your main program into a subroutine. In my experience, this consist mostly if not entirely of converting user input from prompts to subroutine arguments. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925

[R] R package built with Fortran code

2012-02-21 Thread Xia.Li
Hi R users, I'm trying to build an R package and most of the work have been done in Fortran programming. I looked for help for a while and seems like R can only call Fortran subroutines. Now my fortran code has modules, subroutines and main program. Is there anyway that R can call such fortran p