From ripley at stats.ox.ac.uk  Thu Aug 19 08:43:23 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu Aug 19 08:43:28 2004
Subject: [Rd] F90 in R (was (no subject))
In-Reply-To: <20040819013907.12637.eqmail@gsm.pku.edu.cn>
Message-ID: <Pine.LNX.4.44.0408190738050.13976-100000@gannet.stats>

On Thu, 19 Aug 2004, someone claiming to be `faculty wang hansheng' wrote:

> I have a number of F90 codes wish to be linked into R under Windows XP OS.
> Do anyone know how to do it and give some advice? Many thanks. 

Advice: please read the R posting guide, and use an appropriate subject 
line.

First you need to find an F90 compiler for Windows XP (I don't know of a
free one).  Then use it to produce an appropriate DLL with cdecl linkage,
as described in the file README.packages.

Given that R only has C and F77 interfaces to compiled code, you will need 
to ensure that the entry points you actually call use only C/F77 features.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] F90 in R (was (no subject))
Prof Brian Ripley