[R] Fortran in R??
Duncan Murdoch
dmurdoch at pair.com
Fri Jun 25 19:14:25 CEST 2004
On Fri, 25 Jun 2004 13:10:51 -0400, <dardiakm at jmu.edu> wrote :
>Hello,
> We have been trying to use a well working Fortran program
>in R but have been unable to upload it as part of our
>undergraduate research. We are working with windows 98.
>We've read all of what we can find, but cannot figure it
>out. We've tried the dyn.load commands and whatnot. Do we
>need a package in order to do this? Do we need to do it on a
>computer that has the Fortran program on it...and should we
>compile it before we even attempt to upload it? Do you have
>any suggestions? Thanks for your time.
You definitely need to compile it before using dyn.load. Instructions
for how to do this sort of thing are in Writing R Extensions manual,
which is distributed with R.
It is usually easiest to compile using the R script, e.g.
R CMD SHLIB myprog.f
Duncan Murdoch
More information about the R-help
mailing list