[R] Loading to R of Fortran DLL

baba@mxr.mesh.ne.jp baba at mxr.mesh.ne.jp
Sat Jan 19 05:07:06 CET 2002


Dear Thomas Lumley

Thank you very much for your support.

Thomas Lumley Forward:
On Sat, 19 Jan 2002 baba at mxr.mesh.ne.jp wrote:

>> >> R> print(dyn.load("FOO.DLL"))
>> >> NULL
>>
>> This means that FOO.DLL is not loaded.
>> If FOO.DLL is loaded, any subroutine name available should be output.
>>
>
>No.  dyn.load() always returns NULL.  There is an error message if the DLL
>could not be loaded.
>
>You can check this by using dyn.load() on one of the DLLs in the base or
>recommended packages.
>

Yes. I could check it on other recommemmded DLL. 

>Why did you think this would work? I can't find anything in the R
>documentation that suggests dyn.load() returns a list of symbols.

I read Japanese Traslated Book of "The New S Language" by Becker, Chambers, Wilks (1988). 
In Chapter 7.2.1, Dynamic loading is described.
In this chapter, I found the following description:

The Function "dyn.load" returns character vector of Routine name included in Object file loaded.
For example, print(dyn.load("aaa.o")) returns Routine names which are available in all.o.

I think R is mostly compatible of S language.
This is why I wrote such question.

Best Regards,
Baba

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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