From P.Dalgaard at biostat.ku.dk  Tue Dec 18 10:17:25 2007
From: P.Dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Tue, 18 Dec 2007 10:17:25 +0100
Subject: [Rd] Fortran 90 and Windows
In-Reply-To: <4766E847.4060806@montana.edu>
References: <4766E847.4060806@montana.edu>
Message-ID: <47679025.7040208@biostat.ku.dk>

Dave Roberts wrote:
> I have been revising some FORTRAN 77 routines in R packages I have 
> previously submitted.  Since R is now using gfortan I experimented with 
> some Fortran 90 code (array intrinsics primarily).  So far the code is 
> still in F77 fixed format, in files suffixed .f (not .f90), but 
> incorporates some F90 constructs.  It has worked fine in linux/R.  I 
> tried to follow the thread of previous discussions on this subject, but 
> as fast as things are changing, it was somewhat dated, and not too 
> definitive.
>
> I don't so my own Windows versions of packages, but rather rely on CRAN 
> to do the conversions, and I don't want to send them code that won't 
> work on Windows.  Does anybody have extensive experience on what 
> elements of F90 can be used in R packages for Windows?  If R CMD SHLIB 
> is happy with it, is it likely to work?
>
> Thanks, Dave
>   
The Windows toolkit is also GCC, hence gfortran for new enough R. The
thing to worry about is the "other" category of machines. Either
oldish/specialized Unixes which ship with their own toolchains and
optimized libraries, or commercial compilers like the ones from Intel.
Brian Ripley and/or http://cran.r-project.org/doc/manuals/R-exts.html
can fill you in on the details. See also Brian's reply to John Fox on
December 9 ("I wouldn't let that deter you.").

-- 
   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



[Rd] Fortran 90 and Windows
Peter Dalgaard