[Rd] using F95 code in package src (was: (no subject))

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Sep 19 10:02:25 CEST 2005


On Mon, 19 Sep 2005, Antonio, Fabio Di Narzo wrote:

> sorry: wrote 'subject' as 'attachments'!
>
> On 9/19/05, Antonio, Fabio Di Narzo <antonio.fabio at gmail.com> wrote:
>> Is it planned to 'officially' support F95 code in R-2.2.0?

Do you mean in a contributed package to be installed in R?  There are no 
plans to use F95 in R itself.

If so, perhaps by 2.3.0, but there are a lot of issues to resolve.  For 
example, how do you indicate that the source file is F95?  Some compilers 
accept a .f95 extension, but not all (and it is not ever clean which do).

>> If not, by now, how is it possible to 'smothly' use F95 code in a
>> package (i mean, using gfortran)?

It is not. The largest R platform, Windows, does not have a supported F95 
compiler.  (g95 works with MinGW, but R has no support for it as yet, nor 
can one expect people to have installed it.)

>> Something like stopping compilation if a non-f95 compiler is found. My
>> idea by now is to search for the gfortran executable, and set the F77
>> variable to this in the configure script...

Why do you think gfortran is a F95 compiler? (It has considerable support 
for F95, but not complete support AFAICS.)  And that it is the only F95 
compiler?   How do you propose to tell if you have a F95 compiler?


-- 
Brian D. Ripley,                  ripley at 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



More information about the R-devel mailing list