syncLocalLibList         package:reposTools         R Documentation

_A _f_u_n_c_t_i_o_n _t_o _s_y_n_c_h _t_h_e _l_o_c_a_l _l_i_b_r_a_r_y _f_i_l_e

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

     Will look for a file liblisting.Rda in specified R library
     directory, and synch any information that is not in the current
     liblisting into that file.  If no such file exists, will create
     one.

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

     syncLocalLibList(lib = reposToolsLibPaths(), quiet=TRUE)

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

     lib: A vector of library directories to synch.  Default is
          reposToolsLibPaths()

   quiet: A verbosity argument.  More output is provided when 'FALSE'

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

     If there is not currently a liblisting.Rda file in the specified
     lib(s), one will be created.  Any new information (new packages,
     updated versions, etc) will be reflected into the liblisting.Rda
     file.  If multiple libs are specified, this procedure will be
     repeated across all libs.

     The liblisting.Rda file contains an object named 'locLibList'.
     This object is a list of 'localPkg' objects.  Each object in the
     list represents one installed package in that library directory.

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

     Jeff Gentry

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

     'install.packages2', 'update.packages2', 'remove.packages2',
     'reposToolsLibPaths'

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

         ## make a temporary directory for use in this example
         a <- tempfile()
         dir.create(a)
         syncLocalLibList(a)
         unlink(a,recursive=TRUE)

