Re: [R] g77 and R

From: <>
Date: Sat 13 Aug 2005 - 13:00:23 EST

> wrote:
>> Jerry,
>> Here are the two R packages.
>> Thanks.
>> Rick
> All the fortran codes compile OK so the problem is invoking the compiler
> you
> want. One approach which is a work around is to rename the gfortran
> executable
> to somthing else like gfortran-save and create a link called gfortran that
> points to g77. That might work, but its a hack.
> From looking at these it appears that they are intended to be built from
> the R
> environment. Unfortunately I am not an R user and I am not familiar with
> it.
> What is the usual build process you go through?
> Jerry

Installing R packages (sets of statistical analysis functions for specific types of problems) is usually very simple. If the R package is in a repository, then something like:

> install.packages(c("foreign","chron"))

will automatically find, download, compile c and fortran code (if necessary), and put the package functions from the foreign and chron packages into the library. It's usually painless and simple - all the details automatically handled. Since gfortran was installed, a number of packages have failed to compile properly and weren't installed. I have never had a problem installing R packages until very recently - I suspect when gfortran was foisted on us unawares.

Before FC changed to gfortran, g77 was always used. All I want to do is to make sure that if fortran code needs to be compiled, g77 will be used. I don't think R knows anything about gfortran or g77 - it just uses what is available on a given system - so this is something I need to change on FC4 - not R.

Rick mailing list PLEASE do read the posting guide! Received on Sat Aug 13 13:10:31 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:48 EST