buildPkgDepGraph         package:reposTools         R Documentation

_A _f_u_n_c_t_i_o_n _t_o _b_u_i_l_d _a _p_a_c_k_a_g_e _d_e_p_e_n_d_e_n_c_y _g_r_a_p_h

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

     Given a package name, will generate a dependency graph for that
     package, detailing all of that package's dependencies, those
     packages' dependencies, etc.

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

     buildPkgDepGraph(pkg, repEntry, type, curNodes = vector(mode = "character"))

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

     pkg: The name of the package to use as the base

repEntry: If desired, the specific repository to look for the package. 
          Defaults to the reposTools system repositories if none is
          specified.

    type: The download type, ie 'unix', 'windows', etc.  If not
          specified, will attempt to determine the proper type. 

curNodes: Any current nodes in a graph.  Not intended to be used by the
          end user.

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

     This function will recursively generate a dependency graph for a
     package by first looking at all of its dependencies and then
     tracking downt he dependencies for each of those packages, and so
     on.  After the conclusion of every recursive call, the new
     subgraph is connected to the primary graph via the 'join' method
     for graphs.

     If multiple versions of a package are found, the highest version
     of the package will be selected for usage in this function.

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

     An object of class 'graphNEL' detailing the dependency graph for
     the specified package.

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

     Jeff Gentry

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

     'graphNEL-class'

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

       if (require(graph)) {
         z <- buildPkgDepGraph("reposTools")
         if (interactive()) {
           ## If you have Rgraphviz package, can plot the graph
           if (require(Rgraphviz))
              plot(z)
         }
       }

