makeDepGraph           package:pkgDepTools           R Documentation

_C_r_e_a_t_e _a _g_r_a_p_h _r_e_p_r_e_s_e_n_t_i_n_g _R _p_a_c_k_a_g_e _d_e_p_e_n_d_e_n_c_i_e_s

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

     Given a list of CRAN-style repository URLs, this function creates
     a 'graph' instance representing dependencies between packages in
     the repositories.

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

     makeDepGraph(repList, suggests.only = FALSE, type =
     getOption("pkgType"), keep.builtin = FALSE, dosize = TRUE)

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

 repList: a character vector of URLs pointing to CRAN-style
          repositories. 

suggests.only: logical value indicating whether only the '"Suggests"'
          field should be used.  The default ('FALSE') means that
          'DESCRIPTION' fields '"Depends"' and '"Imports"' are used. 
          Note that '"Suggests"' is special in that its use is less
          regulated and the resulting graph is less likely to be a DAG
          (packages sometimes suggest each other).

    type: a character vector specifying the type of packages to search
          for in the repositories.  Must be one of '"source"',
          '"win.binary"', or '"mac.binary"'.

keep.builtin: logical value indicating whether or not packages that
          come with a default R installation should be included in the
          nodes of the dependency graph.  The default, 'FALSE', is to
          remove these packages from the return result.

  dosize: logical value.  When 'TRUE', the function will attempt to
          estimate the download size of each package (requires the
          RCurl package).  The size of each package is added as a node
          attribute to the graph.

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

     A 'graphNEL-class' instance.  If the 'dosize' argument was set to
     'TRUE', then an estimate of the download size of each package is
     stored as a node attribute of the graph.  A missing value is used
     when the download size was not able to be determined as well as
     when the RCurl package is not available.

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

     Seth Falcon

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

       ## Not run: 
         deps <- makeDepGraph("http://cran.fhcrc.org", type="source")
       
     ## End(Not run)

