dyn.load(libname) is.loaded(symbol) symbol.C(name) symbol.For(name)
libname
| a character string giving the pathname to a DLL. |
symbol
| a character string giving a symbol name. |
name
| a character string giving either the name of a C function or Fortran subroutine. |
dyn.load
is used for its side effect which
links the specified shared library to the executing R image.
Calls to .C
and .Fortran
can then be used to execute
C functions or Fortran subroutines contained in the library.dlopen
has become the standard
for doing this under Unix.
dyn.load
uses the dlopen
mechanism and
should work on all platforms which support it.
The original code for loading DLLs in UNIX was provided by Heiner Schwarte. The compatibility code for HP-UX was provided by Luke Tierney.
.C
, .Fortran
.is.loaded(symbol.For("hcass2")) #-> probably FALSE library(mva) is.loaded(symbol.For("hcass2")) #-> TRUE