Skip to content
Prev 69967 / 398506 Next

Call R from Fortran

On Thu, 19 May 2005, Mulholland, Tom wrote:

            
That is about calling Fortran from R, not the subject of this question.
(There are many other more authoritative sources for that.)
This can only be done by combining Fortran and C, as R functions need R 
objects as arguments and return R objects.  R objects are defined in C 
headers and use structures not in Fortran 77.  But it can be done, and 
"Writing R Extensions" is a good place to start, especially the 
OS-specific sections on writing new front ends.