Re: [R] dyn.load a f90 module.

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon 24 Oct 2005 - 08:47:31 EST

Bo Peng wrote:

>>If there are symbols present then unix 'nm' should show them to you.

>
>
> Interestingly:
>
> % nm myfile.so
> 00000004fc T myfile_
> % R
>
>>dyn.load('myfile.so')
>>is.loaded('myfile_')

>
> [1] TRUE
>
>>..Fortran('myfile_')

>
> Error in .Fortran('myfile_'):
> 'Fortran" function name not in load table.
>
> So, myfile_ is loaded but is not callable by R?

.Fortran automatically appends an underscore (on most platforms). Try .Fortran('myfile') instead (or use .C('myfile_')).

Or update to the current release of R, which gives a more informative error message.

Duncan Murdoch



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 24 08:51:51 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 11:12:30 EST