LoadRegTypeLib         package:SWinTypeLibs         R Documentation

_L_o_a_d _t_y_p_e _l_i_b_r_a_r_y _g_i_v_e_n _U_U_I_D _a_n_d _v_e_r_s_i_o_n _i_n_f_o_r_m_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Like 'LoadTypeLib', this function  loads a type library into R and
     returns a reference/handle to it.  However, how it finds the type
     library is different. 'LoadTypeLib' is given the fully qualified
     location of the file that contains the type library. This function
     however consults the Window's registry to find the type library
     file and then load its. It uses the UUID that  identifies the 
     type library, along with version information and the locale
     identifier to determine which specific type library to load.

_U_s_a_g_e:

     LoadRegTypeLib(guid, version, lcid = 0)

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

    guid: the UUID . Currently, this is a string/character vector
          rather than an object of class UUID.

 version: an integer vector giving the major and minor version number
          in that order.

    lcid: a numeric/real value identifying the locale for the type
          library.

_D_e_t_a_i_l_s:

     This calls the C-level routine 'LoadRegTypeLib'. It consults the
     registry. We do not.

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

     An object of class 'ITypeLib-class'.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://msdn.microsoft.com/library> <URL:
     http://www.omegahat.org/RWinTypeLibs>

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

     'LoadTypeLib' 'getTypeLib' 'getTypeLibInfo' (unexported from
     SWinTypeLibs) retrieves the UUID, version and locale information
     from a 'IContainingTypeLib' object derived from a 'ITypeInfo'.

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

       # Get the excel type library.
       try(lib <- LoadRegTypeLib("{00020813-0000-0000-C000-000000000046}", c(1, 1)))

