Skip to content
Prev 13334 / 398502 Next

[S] dyn.load

Moved to R-help: this is an R-specific question.
On Wed, 5 Sep 2001, Juan Ramon Gonzalez wrote:

            
DLL library using the instruction dll.load. In R exists the function
'dyn.load' and I get the following results

dll.load is not in the current S-PLUS Windows version, BTW.
Because the symbol being looked for is "my_function_".  You are mis-using
is.loaded, in both R and S-PLUS:

     Functions `symbol.C' and `symbol.For' map function or subroutine
     names to the symbol name in the compiled code: `is.loaded' checks
     if the symbol name is loaded and hence available for use in `.C'
     or `.Fortran'.

You needed is.loaded(symbol.For("my_function")).


Perhaps you need to re-read the readme.packages file about Windows Fortran
compilers (assuming you did use a Fortran compiler).