createRegistryPath       package:SWinRegistry       R Documentation

_C_o_n_s_t_r_u_c_t_o_r _f_o_r _r_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _a _r_e_g_i_s_t_r_y _e_n_t_r_y

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

     This allows one to create an identifier  for an entry in the
     Windows registry, identifying the entry as either a simple value
     or a regular key which potentially has sub-keys.

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

     createRegistryPath(path, top, isValue)

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

    path: a character vector giving the path or sequence of entries
          identifying the hierarchical entry  in the Windows registry.
          This is resolved relative to the 'top' element. 

     top: 

 isValue: a logical value indicating whether the path  identifies a key
          or a value

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

     An object of class  '' or '' depending on the value of 'isValue'.

_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://www.omegahat.org/SWinRegistry>

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

     createRegistryPath("SOFTWARE", "HKEY_LOCAL_MACHINE", FALSE)
      # Partial matching for the top argument
     createRegistryPath("SOFTWARE", "HKEY_LOC", FALSE)
      # Using integers based on the index in the .BuiltinKeys
     createRegistryPath("SOFTWARE", 4, FALSE)

      # Nested path using a single string.
     createRegistryPath("SOFTWARE\R-core\R", 4, FALSE)
      # Nested path and a Value reference.
     createRegistryPath("SOFTWARE\R-core\R\InstallPath", 4, TRUE)

      # Mixing the forms in which we specify the path, elements and 
      # a single string with \
     createRegistryPath(c("a", "b", "c", "x\y\z"), "HKEY_LOCAL_MACHINE", TRUE)

