

_F_o_r_e_i_g_n _F_u_n_c_t_i_o_n _I_n_t_e_r_f_a_c_e

     dyn.load(libname)

     is.loaded(symbol)
     symbol.C(name)
     symbol.For(name)

_A_r_g_u_m_e_n_t_s:

 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.

_V_a_l_u_e:

     The function `dyn.load' is used for its side effect
     which links the specified shared library to the execut-
     ing R image.  Calls to `.C' and `.Fortran' can then be
     used to execute C functions or Fortran subroutines con-
     tained in the library.

_N_o_t_e:

     The creation of shared libraries the runtime linking of
     them into executing programs is very platform depen-
     dent.  In recent years there has been some simplifica-
     tion in the process because the C subroutine call `dlo-
     pen' 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.

_S_e_e _A_l_s_o:

     `.C', `.Fortran'.

_E_x_a_m_p_l_e_s:

     is.loaded(symbol.For("hcass2")) #-> probably  FALSE
     library(mva)
     is.loaded(symbol.For("hcass2")) #-> TRUE

