buildRepDepGraph            package:graph            R Documentation

_F_u_n_c_t_i_o_n_a_l_i_t_y _t_o _m_a_n_a_g_e _r_e_p_o_s_i_t_o_r_y _d_e_p_e_n_d_e_n_c_y _g_r_a_p_h_s

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

     These functions can be used to represent and manipulate dependency
     graphs for a specified package repository.

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

     buildRepDepGraph(repository, depLevel = c("Depends", "Suggests"))
     pkgInstOrder(pkg, repGraph)

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

repository: A URL to a 'CRAN' style repository

depLevel: One of 'Depends' or 'Suggests', detailing the level of
          dependencies to search.  The 'Suggests' value includes
          everything in 'Depends'.

     pkg: The package to get the installation order for

repGraph: A 'graph' object representing a repository, as from
          'buildRepDepGraph'

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

     For 'buildRepDepGraph', a graph representing the dependency
     structure of the specified repository, where an edge from node 'A'
     to node 'B' represents a dependency on 'B' by 'A'.

     For 'pkgInstOrder', a vector is returned, listing the appropriate
     order one would take to install all of the necessary packages to
     install the specified package.  That is, it makes sure that at
     every step, any package being installed does not depend on one
     that has not yet been installed.  This order can then be used with
     functions such as 'install.packages'.

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

     Jeff Gentry

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

        repos <- getOption("repositories")()["BIOC"] ## Get BIOC repos

        if("FIXME"=="Jeff, we can't assume that we're always online - wh")
          buildRepDepGraph(repos)

