[R] using compiled fortran in R

Natalie Hawkins hawkins at scharp.org
Wed Jul 25 02:30:02 CEST 2001


I would like to use a Fortran subroutine in R.  I have checked the R
docs and Newsletter,
but..., I am unable to load an object file into R.

The steps I have taken are (on Debian Linux/recent Intel-type chip ):

1. g77 -c hello.f
    to create hello.o

2. mymachine> R
    to start R

3. > dyn.load("hello.o")
    at which point I am getting the error msg:

   Error in dyn.load(x, as.logical(local), as.logical(now)) :
   unable to load shared library "/home/hawkins/Rfortran/hello.o":
   /home/hawkins/Rfortran/hello.o: ELF file's phentsize not the expected

Can anyone (please) correct my procedure, offer a suggestion?

Natalie Hawkins

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list