I browsed through ch.5 of R manual "Writing R extensions".
It seems to be written for experienced programmers rathern than for people who occasionally face this problem.
A table summarising the main ley points for each supported platform would be very useful.
Something like:
Supported languages: C, Fortran-77, ......

Windows guidelines:  
1. compie Fotran code with (commands) from (terminal / command line ... ?)
2. load compiled code with (commands) from (....)
3. call Fortran subroutine from R passing arguments ....

Linux guidelines:
1.
2.
3.

Unix guidelines:
1.
2.
3.

Coming to my problem. I have 4 Fortran-90 subroutines. There is a "main" routine calling the other three ones.
Therefore I only need to call, and exchange data, between R and the "main" Fortran subroutine.

Question-1:
 can Fotran-90 be interfaced to R ?  The manual mentions Fortran-77. I found no mention of Fortran-90 (which supports 
 dynamic memory allocation, and whose set of commands is bigger then Fortran-77)

Question-2:
Shall I generate executable code (compile the Fortran subroutines) through a Fortran compiler (which one ?) 
outside R environment ?

Question-3:
Shall I create a library ("so") object for each one of the 4 Fortran routiines or just the for the "main" one ?

Question-4:
What is the whole interfacing  procedure on a Windows/XP system  (steps sequence) ?

Question-5:
What is the whole interfacing  procedure on a Mac/OS system  (steps sequence) ?

Thank you in advance for clarifying my confusion.
Maura



tutti i telefonini TIM!




tutti i telefonini TIM!





tutti i telefonini TIM!


	[[alternative HTML version deleted]]


