Skip to content
Back to formatted view

Raw Message

Message-ID: <49CB355E.9050304@biostat.ku.dk>
Date: 2009-03-26T07:57:18Z
From: Peter Dalgaard
Subject: Fortran-90 and R
In-Reply-To: <6B32C438581E5D4C8A34C377C3B334A401752A20@FBCMST11V04.fbc.local>

mauede at alice.it wrote:
> I have some code in Fortran-90 that outperforms my R implementation of the same algorithm (in terms of speed).
> I wonder whether it is possible to interface R with Fortran-90. that is would like to call a Fortran routine from my R 
> script, passing to the Fortran routine some real numbers array, some scalar real numbers, and an integer number . 
> I have no idea how to do that because Fortran is a compiled language whereas R s an interpreted language ..
> therefore I do not know whetehr it makes any sense to build a make file for the linker ... Is the linker necessary ?
> 
> Thank you very much.
> Maura

You need to read this:

http://cran.r-project.org/doc/manuals/R-exts.pdf

	-p


-- 
    O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907