[R] g77 and R
rab45+@pitt.edu
rab45+ at pitt.edu
Sat Aug 13 05:00:23 CEST 2005
> rab45+ at pitt.edu 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
More information about the R-help
mailing list